wpcom_json_api_objects, posts

wpcom_json_api_objects, posts

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: jetpack.16.0.1

do_action('wpcom_json_api_objects, posts') is found 9 times:

  • /json-endpoints/class.wpcom-json-api-get-post-endpoint.php line 106

    Warning: Undefined array key 110 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 111 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    			return new WP_Error( 'unknown_post', 'Unknown post', 404 );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		return $return;
    	}
    }
    
    
    
  • /json-endpoints/class.wpcom-json-api-get-post-v1-1-endpoint.php line 115

    Warning: Undefined array key 119 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    Warning: Undefined array key 120 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    			return new WP_Error( 'unknown_post', 'Unknown post', 404 );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		return $post;
    	}
    }
    
    
    
  • /json-endpoints/class.wpcom-json-api-update-post-endpoint.php line 866
    			$return['sticky'] = ( true === $sticky );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		return $return;
    	}
    
    	/**
    	 * Delete a post.
    
  • /json-endpoints/class.wpcom-json-api-update-post-endpoint.php line 903
    			return $return;
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		// we need to call wp_trash_post so that untrash will work correctly for all post types.
    		if ( 'trash' === $post->post_status ) {
    			wp_delete_post( $post->ID );
    		} else {
    			wp_trash_post( $post->ID );
    
  • /json-endpoints/class.wpcom-json-api-update-post-endpoint.php line 945
    			return new WP_Error( 'unauthorized', 'User cannot restore trashed posts', 403 );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		wp_untrash_post( $post->ID );
    
    		return $this->get_post_by( 'ID', $post->ID, $args['context'] );
    	}
    
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php line 946
    			$return['other_URLs'] = (object) $sal_site->get_permalink_suggestions( $title );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		return $return;
    	}
    
    	/**
    	 * Delete a post.
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php line 983
    			return $return;
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		// we need to call wp_trash_post so that untrash will work correctly for all post types.
    		if ( 'trash' === $post->post_status ) {
    			wp_delete_post( $post->ID );
    		} else {
    			wp_trash_post( $post->ID );
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php line 1025
    			return new WP_Error( 'unauthorized', 'User cannot restore trashed posts', 403 );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		wp_untrash_post( $post->ID );
    
    		return $this->get_post_by( 'ID', $post->ID, $args['context'] );
    	}
    
    
  • /json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php line 955
    			$return['other_URLs'] = (object) $sal_site->get_permalink_suggestions( $input['title'] );
    		}
    
    		/** This action is documented in json-endpoints/class.wpcom-json-api-site-settings-endpoint.php */
    		do_action( 'wpcom_json_api_objects', 'posts' );
    
    		return $return;
    	}
    
    	/**
    	 * Determine if a theme's functions.php file should be loaded.