How do I correctly create a custom post type record through the wp rest api v2 with custom fields? Unable to create custom fields or update them.
I have installed the su
There was a glaringly obvious problem with my wordpress plugin where the add action function name did not match the actual function name
register_something_random
and slug_register_something_random()
add_action( 'rest_api_init', 'register_something_random' );
function slug_register_something_random() {
Should be
add_action( 'rest_api_init', 'register_something_random' );
function register_something_random() {
Made this change and all is now ok