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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -