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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
4482 | } else { |
4483 | /** |
4484 | * Filters the default query fields used by the given XML-RPC method. |
4485 | * |
4486 | * @since 3.4.0 |
4487 | * |
4488 | * @param array $fields An array of post type query fields for the given method. |
4489 | * @param string $method The method name. |
4490 | */ |
4491 | $fields = apply_filters( 'xmlrpc_default_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostType' ); |
4492 | } |
4493 |
|
4494 | $user = $this->login( $username, $password ); |
4495 | if ( ! $user ) { |
4496 | return $this->error; |
4497 | } |
4498 |
|
4499 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
4500 | do_action( 'xmlrpc_call', 'wp.getPostType' ); |
Line | Code |
4539 |
|
4540 | $username = $args[1]; |
4541 | $password = $args[2]; |
4542 | $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true ); |
4543 |
|
4544 | if ( isset( $args[4] ) ) { |
4545 | $fields = $args[4]; |
4546 | } else { |
4547 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
4548 | $fields = apply_filters( 'xmlrpc_default_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostTypes' ); |
4549 | } |
4550 |
|
4551 | $user = $this->login( $username, $password ); |
4552 | if ( ! $user ) { |
4553 | return $this->error; |
4554 | } |
4555 |
|
4556 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
4557 | do_action( 'xmlrpc_call', 'wp.getPostTypes' ); |