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 |
---|---|
38 | $taxonomies = array_filter( $taxonomies, 'is_taxonomy_viewable' ); |
39 |
|
40 | /** |
41 | * Filters the list of taxonomy object subtypes available within the sitemap. |
42 | * |
43 | * @since 5.5.0 |
44 | * |
45 | * @param WP_Taxonomy[] $taxonomies Array of registered taxonomy objects keyed by their name. |
46 | */ |
47 | return apply_filters( 'wp_sitemaps_taxonomies', $taxonomies ); |
48 | } |
49 |
|
50 | /** |
51 | * Gets a URL list for a taxonomy sitemap. |
52 | * |
53 | * @since 5.5.0 |
54 | * @since 5.9.0 Renamed `$taxonomy` to `$object_subtype` to match parent class |
55 | * for PHP 8 named parameter support. |
56 | * |