wpcom_json_api_objects

This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php.

Description

do_action( 'wpcom_json_api_objects', (string) $taxonomies ); 

Parameters (1)

0. $taxonomies (string) => 'taxonomies'
The taxonomies.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wpcom_json_api_objects', $taxonomies ); 
The following example is for adding a hook callback.
  1. // define the wpcom_json_api_objects callback 
  2. function action_wpcom_json_api_objects( $taxonomies ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wpcom_json_api_objects', 'action_wpcom_json_api_objects', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wpcom_json_api_objects', 'action_wpcom_json_api_objects', 10, 1 ); 

Defined (22)

The action is defined in the following location(s).

/json-endpoints/class.wpcom-json-api-update-taxonomy-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'taxonomies' ); 
  1. do_action( 'wpcom_json_api_objects', 'taxonomies' ); 
  1. do_action( 'wpcom_json_api_objects', 'taxonomies' ); 
/json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
/json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
/json-endpoints/class.wpcom-json-api-update-post-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
/json-endpoints/class.wpcom-json-api-update-comment-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'comments' ); 
  1. do_action( 'wpcom_json_api_objects', 'comments' ); 
  1. do_action( 'wpcom_json_api_objects', 'comments' ); 
/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'sites' ); 
/json-endpoints/class.wpcom-json-api-list-posts-v1-1-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts', count( $posts ) ); 
/json-endpoints/class.wpcom-json-api-list-posts-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts', count( $posts ) ); 
/json-endpoints/class.wpcom-json-api-list-comments-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'comments', count( $return_comments ) ); 
/json-endpoints/class.wpcom-json-api-get-taxonomy-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'taxonomies' ); 
/json-endpoints/class.wpcom-json-api-get-site-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'sites' ); 
/json-endpoints/class.wpcom-json-api-get-post-v1-1-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
/json-endpoints/class.wpcom-json-api-get-post-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'posts' ); 
/json-endpoints/class.wpcom-json-api-get-comment-endpoint.php  
  1. do_action( 'wpcom_json_api_objects', 'comments' );