WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
3522 |
|
3523 | $blog_id = (int) $args[0]; |
3524 | $username = $args[1]; |
3525 | $password = $args[2]; |
3526 | $post_id = (int) $args[3]; |
3527 |
|
3528 | if ( isset( $args[4] ) ) |
3529 | $fields = $args[4]; |
3530 | else |
3531 | $fields = apply_filters( 'xmlrpc_default_revision_fields', array( 'post_date', 'post_date_gmt' ), 'wp.getRevisions' ); |
3532 |
|
3533 | if ( ! $user = $this->login( $username, $password ) ) |
3534 | return $this->error; |
3535 |
|
3536 | do_action( 'xmlrpc_call', 'wp.getRevisions' ); |
3537 |
|
3538 | if ( ! $post = get_post( $post_id ) ) |
3539 | return new IXR_Error( 404, __( 'Invalid post ID' ) ); |
3540 |
|