Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_default_revision_fields

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3520
3521           $blog_id    = (int) $args[0];
3522           $username   = $args[1];
3523           $password   = $args[2];
3524           $post_id    = (int) $args[3];
3525
3526           if ( isset( $args[4] ) )
3527                $fields = $args[4];
3528           else
3529                $fields = apply_filters( 'xmlrpc_default_revision_fields', array( 'post_date', 'post_date_gmt' ), 'wp.getRevisions' );
3530
3531           if ( ! $user = $this->login( $username, $password ) )
3532                return $this->error;
3533
3534           do_action( 'xmlrpc_call', 'wp.getRevisions' );
3535
3536           if ( ! $post = get_post( $post_id ) )
3537                return new IXR_Error( 404, __( 'Invalid post ID' ) );
3538