Questions about PHP

Hi! I’m Kyle.

I’m working on a program(C#) and am in the process of connecting it to my website’s(Wordpress) SQL database. I’m trying to authenticate the input Username and Password using the wp-users table on my website. I installed a plug-in that allows me to use " password_hash() and its accompanying functions. ", but I’m not really sure how to call it.

I understand the basic syntax of php but I’ve never written my own php script. This seems like a relatively common and easy task.

Wordpress offers the code for it. This is just the code bit: https://codeshare.io/arxxJZ

Here is Wordpress’s post: https://developer.wordpress.org/reference/functions/wp_hash_password/

Any help is greatly appreciated.

You need to load the Wordpress engine and then run wp_signon

wp_signon( array $credentials = array(), string|bool $secure_cookie = '' )

https://developer.wordpress.org/reference/functions/wp_signon/

Sponsor our Newsletter | Privacy Policy | Terms of Service