json - WP REST API V2 didint work -
i installed json api plugin , worked ,but old version
then installed wordpress rest api (version 2) , didnt make result , show request:
"unexpected '<' "
in wp-includes/meta.php file
we should add code :
function get_registered_meta_keys( $object_type ) { global $wp_meta_keys; if ( ! is_array( $wp_meta_keys ) || ! isset( $wp_meta_keys[ $object_type ] ) ) { return array(); } return $wp_meta_keys[ $object_type ]; }
Comments
Post a Comment