rest_{$this->post_type}_item_schema

rest_{$this->post_type}_item_schema

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_{$this->post_type}_item_schema') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php line 2720
    		 * @since 5.4.0
    		 *
    		 * @param array $schema Item schema data.
    		 */
    		$schema = apply_filters( "rest_{$this->post_type}_item_schema", $schema );
    
    		// Emit a _doing_it_wrong warning if user tries to add new properties using this filter.
    		$new_fields = array_diff( array_keys( $schema['properties'] ), $schema_fields );
    		if ( count( $new_fields ) > 0 ) {
    			_doing_it_wrong(
    				__METHOD__,