Skip to content

Instantly share code, notes, and snippets.

@modemlooper
Created December 5, 2014 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modemlooper/77c602416879da6ea128 to your computer and use it in GitHub Desktop.
Save modemlooper/77c602416879da6ea128 to your computer and use it in GitHub Desktop.
block post type from WP api
add_action( 'init', function() {
global $wp_post_types;
$wp_post_type['type_name']->show_in_json = false;
}, 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment