sm_sitemap_index

sm_sitemap_index

Hook Type: filter

See hook in core

Displaying hooks found in version: google-sitemap-generator.4.1.21

apply_filters('sm_sitemap_index') is found 1 times:

  • /class-googlesitemapgeneratorstandardbuilder.php line 1066
    		 *
    		 * @param array $sitemap_custom_items The custom xml link to include.
    		 */
    		$sitemap_custom_items = [];
    		$sitemap_custom_items = apply_filters( 'sm_sitemap_index', $sitemap_custom_items );
    		if ( ! is_array( $sitemap_custom_items ) ) {
    			$sitemap_custom_items = [];
    		}
    		if ( ! empty( $sitemap_custom_items ) ) {
    			foreach ( $sitemap_custom_items as $sitemap_custom_item ) {
    				$title = ( isset( $sitemap_custom_item['title'] ) ) ? $sitemap_custom_item['title'] : '';