Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_sitemaps_index_entry

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
116                      *
117                      * @since 5.5.0
118                      *
119                      * @param array  $sitemap_entry  Sitemap entry for the post.
120                      * @param string $object_type    Object empty name.
121                      * @param string $object_subtype Object subtype name.
122                      *                               Empty string if the object type does not support subtypes.
123                      * @param int    $page           Page number of results.
124                      */
125                     $sitemap_entry = apply_filters( 'wp_sitemaps_index_entry', $sitemap_entry, $this->object_type, $type['name'], $page );
126
127                     $sitemaps[] = $sitemap_entry;
128                }
129           }
130
131           return $sitemaps;
132      }
133
134      /**