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