xmlrpc_default_post_fields

xmlrpc_default_post_fields

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('xmlrpc_default_post_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 1923
    			 * @param array  $fields An array of post fields to retrieve. By default,
    			 *                       contains 'post', 'terms', and 'custom_fields'.
    			 * @param string $method Method name.
    			 */
    			$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPost' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}
    
  • /wp-includes/class-wp-xmlrpc-server.php line 1984
    		if ( isset( $args[4] ) ) {
    			$fields = $args[4];
    		} else {
    			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    			$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPosts' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}