xmlrpc_default_posttype_fields

xmlrpc_default_posttype_fields

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('xmlrpc_default_posttype_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 4564
    4560
    4561
    4562
    4563
    4564
    4565
    4566
    4567
    4568
    4569
    4570
         * @param array  $fields An array of post type fields to retrieve. By default,
         *                       contains 'labels', 'cap', and 'taxonomies'.
         * @param string $method The method name.
         */
        $fields = apply_filters( 'xmlrpc_default_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostType' );
    }
     
    $user = $this->login( $username, $password );
    if ( ! $user ) {
        return $this->error;
    }
  • /wp-includes/class-wp-xmlrpc-server.php line 4621
    4617
    4618
    4619
    4620
    4621
    4622
    4623
    4624
    4625
    4626
    4627
    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_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostTypes' );
    }
     
    $user = $this->login( $username, $password );
    if ( ! $user ) {
        return $this->error;
    }