Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_sitemaps_max_urls

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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.