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 |
---|---|
1838 |
|
1839 | $blog_id = (int) $args[0]; |
1840 | $username = $args[1]; |
1841 | $password = $args[2]; |
1842 | $taxonomy = $args[3]; |
1843 |
|
1844 | if ( isset( $args[4] ) ) |
1845 | $fields = $args[4]; |
1846 | else |
1847 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomy' ); |
1848 |
|
1849 | if ( ! $user = $this->login( $username, $password ) ) |
1850 | return $this->error; |
1851 |
|
1852 | do_action( 'xmlrpc_call', 'wp.getTaxonomy' ); |
1853 |
|
1854 | if ( ! taxonomy_exists( $taxonomy ) ) |
1855 | return new IXR_Error( 403, __( 'Invalid taxonomy' ) ); |
1856 |
|
Line | Code |
1882 |
|
1883 | $blog_id = (int) $args[0]; |
1884 | $username = $args[1]; |
1885 | $password = $args[2]; |
1886 | $filter = isset( $args[3] ) ? $args[3] : array( 'public' => true ); |
1887 |
|
1888 | if ( isset( $args[4] ) ) |
1889 | $fields = $args[4]; |
1890 | else |
1891 | $fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' ); |
1892 |
|
1893 | if ( ! $user = $this->login( $username, $password ) ) |
1894 | return $this->error; |
1895 |
|
1896 | do_action( 'xmlrpc_call', 'wp.getTaxonomies' ); |
1897 |
|
1898 | $taxonomies = get_taxonomies( $filter, 'objects' ); |
1899 |
|
1900 | // holds all the taxonomy data |