xmlrpc_default_posttype_fields

xmlrpc_default_posttype_fields

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.1

apply_filters('xmlrpc_default_posttype_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 4472
    			 *
    			 * @param array  $fields An array of post type query fields for the given method.
    			 * @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 4529
    		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;
    		}