xmlrpc_default_user_fields

xmlrpc_default_user_fields

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

See hook in core

Displaying hooks found in version: wordpress-6.5.3

apply_filters('xmlrpc_default_user_fields') is found 3 times:

  • /wp-includes/class-wp-xmlrpc-server.php line 2699
    			 *
    			 * @param array  $fields An array of user fields to retrieve. By default, contains 'all'.
    			 * @param string $method The method name.
    			 */
    			$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUser' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}
    
  • /wp-includes/class-wp-xmlrpc-server.php line 2762
    		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_user_fields', array( 'all' ), 'wp.getUsers' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}
    
  • /wp-includes/class-wp-xmlrpc-server.php line 2842
    		if ( isset( $args[3] ) ) {
    			$fields = $args[3];
    		} else {
    			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
    			$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' );
    		}
    
    		$user = $this->login( $username, $password );
    		if ( ! $user ) {
    			return $this->error;
    		}