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