Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_sitemaps_posts_pre_url_list

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
78            * Returning a non-null value will effectively short-circuit the generation,
79            * returning that value instead.
80            *
81            * @since 5.5.0
82            *
83            * @param array[]|null $url_list  The URL list. Default null.
84            * @param string       $post_type Post type name.
85            * @param int          $page_num  Page of results.
86            */
87           $url_list = apply_filters(
88                'wp_sitemaps_posts_pre_url_list',
89                null,
90                $post_type,
91                $page_num
92           );
93
94           if ( null !== $url_list ) {
95                return $url_list;
96           }