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 |
---|---|
79 | function wp_sitemaps_get_max_urls( $object_type ) { |
80 | /** |
81 | * Filters the maximum number of URLs displayed on a sitemap. |
82 | * |
83 | * @since 5.5.0 |
84 | * |
85 | * @param int $max_urls The maximum number of URLs included in a sitemap. Default 2000. |
86 | * @param string $object_type Object type for sitemap to be filtered (e.g. 'post', 'term', 'user'). |
87 | */ |
88 | return apply_filters( 'wp_sitemaps_max_urls', 2000, $object_type ); |
89 | } |
90 |
|
91 | /** |
92 | * Retrieves the full URL for a sitemap. |
93 | * |
94 | * @since 5.5.1 |
95 | * |
96 | * @param string $name The sitemap name. |
97 | * @param string $subtype_name The sitemap subtype name. Default empty string. |