xmlrpc_default_taxonomy_fields

xmlrpc_default_taxonomy_fields

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('xmlrpc_default_taxonomy_fields') is found 2 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 2555
    			 * @param array  $fields An array of taxonomy fields to retrieve. By default,
    			 *                       contains 'labels', 'cap', and 'object_type'.
    			 * @param string $method The method name.
    			 */
    			$fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomy' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}
    
  • /wp-includes/class-wp-xmlrpc-server.php line 2613
    		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_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}