Should I edit a user meta field with PUT, PATCH, or POST and WP::Editable

Okay, with some great examples from : https://restfulapi.net/resource-naming/ and http://www.restapitutorial.com/lessons/restfulresourcenaming.html I’m going to answer my own question. ESSENTIALLY, for my use case, I will NOT use PUT but rely on POST and DELETE to collection and singleton endpoints. Notes: I’ve omitted the wp-json/my-site-namespace/v1 prepending examples for clarity I’ve used query strings in POST requests but … Read more

Posting data from Ionic app to WordPress

The only way you can do this my friend is by using the REST API. In you ionic app you will make a post request to the api. You will need to go through Oauth for authentication and so forth, but that’s what the REST api is made for.

Pull specific data from CSV

You can let the client to upload csv file. After upload you can read csv file with a php function (maybe fgetcsv) and put columns and rows to table (maybe with dataTables jQuery plugin). If you let the user to edit table, you can use these information for create a form After that you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)