WP OAuth Server “The grant type was not specified in the request”
WP OAuth Server “The grant type was not specified in the request”
WP OAuth Server “The grant type was not specified in the request”
Best way to integrate contact us page with wordpress REST API [closed]
Using WordPress as an API [closed]
Postman shares cookies with Chrome. If you are logged into your site you may see unexpected results. REF : https://wordpress.org/support/topic/wp-api-cant-create-a-post/
get_body_class() relies on $wp_query to do its thing, which is apparently a no-go for the JSON API. I considered creating a global object to hold the body class, and just using that to keep the body_class up to date…but that wouldn’t work without page reloads, and there would be no assurance that the object was … Read more
You’ll want to use cURL to do server to server connections. There are plenty of examples online but here is a good starting point so you can at least know what functions to look into. http://php.net/manual/en/curl.examples-basic.php
Enabling CORS with WordPress
Use global variables to pass values from the template to the header. // in the template file global $my_page_title; $my_page_title=”field value”; global $my_meta_description; $my_meta_description = ‘field value’; get_header(); // in the header file global $my_page_title; global $my_meta_description; echo $my_page_title; echo $my_meta_description;
I’ve found the problem, why it’s not working with the categories. I don’t know why, but when creating a post over the API, the post is published before the category is correctly set. Now, I’m creating drafts (already with correct category). With a second PUT-Request I set the status to “publish” and publish my posts. … Read more
Dirty fix will be to remove/change $pluginInstallSearch.on to trigger only on submit. The changed function looks like this. Remember this is not recommended. $pluginInstallSearchOnlyonSubmit = $(“.plugin-install-php .search-form.search-plugins”); $pluginInstallSearchOnlyonSubmit.on( ‘submit’, _.debounce( function( event, eventtype ) { var $searchTab = $( ‘.plugin-install-search’ ), data, searchLocation; data = { _ajax_nonce: wp.updates.ajaxNonce, s: $pluginInstallSearchOnlyonSubmit.find(‘.wp-filter-search’).val(),//Set the search input value tab: … Read more