sm_build_index

sm_build_index

Hook Type: action
See hook in action

See hook in core

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

do_action('sm_build_index') is found 2 times:

  • /sitemap-core.php line 1777
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    $this->sim_mode = true;
     
    require_once trailingslashit( dirname( __FILE__ ) ) . 'class-googlesitemapgeneratorstandardbuilder.php';
    do_action( 'sm_build_index', $this );
     
    $this->sim_mode = false;
     
    $r = $this->sim_data['sitemaps'];
     
    $this->clear_sim_data( 'sitemaps' );
  • /sitemap-core.php line 1947
    1943
    1944
    1945
    1946
    1947
    1948
    1949
    1950
    1951
    1952
    1953
    if ( empty( $options['params'] ) || 'index' === $options['params'] ) {
     
        $this->build_sitemap_header( 'index' );
     
        do_action( 'sm_build_index', $this );
     
        $this->build_sitemap_footer( 'index' );
        $this->add_end_commend( $start_time, $start_queries, $start_memory );
    } else {
        $all_params = $options['params'];
        $type       = null;

See this hook used in plugins: