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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -