xmlrpc_wp_insert_post_data

xmlrpc_wp_insert_post_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('xmlrpc_wp_insert_post_data') is found 1 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 1685
    		 *
    		 * @param array $post_data      Parsed array of post data.
    		 * @param array $content_struct Post data array.
    		 */
    		$post_data = apply_filters( 'xmlrpc_wp_insert_post_data', $post_data, $content_struct );
    
    		// Remove all null values to allow for using the insert/update post default values for those keys instead.
    		$post_data = array_filter(
    			$post_data,
    			static function ( $value ) {
    				return null !== $value;