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 |
---|---|
1855 | } else { |
1856 | /** |
1857 | * Filters the list of post query fields used by the given XML-RPC method. |
1858 | * |
1859 | * @since 3.4.0 |
1860 | * |
1861 | * @param array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'. |
1862 | * @param string $method Method name. |
1863 | */ |
1864 | $fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPost' ); |
1865 | } |
1866 |
|
1867 | $user = $this->login( $username, $password ); |
1868 | if ( ! $user ) { |
1869 | return $this->error; |
1870 | } |
1871 |
|
1872 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
1873 | do_action( 'xmlrpc_call', 'wp.getPost' ); |
Line | Code |
1916 |
|
1917 | $username = $args[1]; |
1918 | $password = $args[2]; |
1919 | $filter = isset( $args[3] ) ? $args[3] : array(); |
1920 |
|
1921 | if ( isset( $args[4] ) ) { |
1922 | $fields = $args[4]; |
1923 | } else { |
1924 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
1925 | $fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPosts' ); |
1926 | } |
1927 |
|
1928 | $user = $this->login( $username, $password ); |
1929 | if ( ! $user ) { |
1930 | return $this->error; |
1931 | } |
1932 |
|
1933 | /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
1934 | do_action( 'xmlrpc_call', 'wp.getPosts' ); |