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.2

apply_filters('xmlrpc_default_post_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 1923
    1919
    1920
    1921
    1922
    1923
    1924
    1925
    1926
    1927
    1928
    1929
         * @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
    1980
    1981
    1982
    1983
    1984
    1985
    1986
    1987
    1988
    1989
    1990
    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;
    }