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
    2227
    2228
    2229
    2230
    2231
    2232
    2233
    2234
    2235
    2236
    2237
    $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(