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
3515
3516           $blog_id    = (int) $args[0];
3517           $username   = $args[1];
3518           $password   = $args[2];
3519           $post_id    = (int) $args[3];
3520
3521           if ( isset( $args[4] ) )
3522                $fields = $args[4];
3523           else
3524                $fields = apply_filters( 'xmlrpc_default_revision_fields', array( 'post_date', 'post_date_gmt' ), 'wp.getRevisions' );
3525
3526           if ( ! $user = $this->login( $username, $password ) )
3527                return $this->error;
3528
3529           do_action( 'xmlrpc_call', 'wp.getRevisions' );
3530
3531           if ( ! $post = get_post( $post_id ) )
3532                return new IXR_Error( 404, __( 'Invalid post ID' ) );
3533