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

apply_filters('xmlrpc_default_posttype_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 4564
    			 * @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
    		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;
    		}