sm_addsitemap

sm_addsitemap

Hook Type: action

See hook in core

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

do_action('sm_addsitemap') is found 1 times:

  • /sitemap-core.php line 2231
    		$url = $this->get_xml_url( $type, $params );
    
    		$sitemap = new GoogleSitemapGeneratorSitemapEntry( $url, $last_mod );
    
    		do_action( 'sm_addsitemap', $sitemap );
    
    		if ( $this->sim_mode ) {
    			  // phpcs:disable WordPress.PHP.DevelopmentFunctions
    			$caller = $this->get_external_backtrace( debug_backtrace() );
    			  // phpcs:enable
    			$this->sim_data['sitemaps'][] = array(