post_type, 'timeinfo' ); // #17455 $options = get_wpseo_options(); if ( isset( $options[ 'post_types-' . $post->post_type . '-not_in_sitemap' ] ) && $options[ 'post_types-' . $post->post_type . '-not_in_sitemap' ] ) return; if ( WP_CACHE ) wp_schedule_single_event( time() + 300, 'wpseo_hit_sitemap_index' ); // Allow the pinging to happen slightly after the hit sitemap index so the sitemap is fully regenerated when the ping happens. if ( wpseo_get_value( 'sitemap-include', $post->ID ) != 'never' ) { if ( defined( 'YOAST_SEO_PING_IMMEDIATELY' ) && YOAST_SEO_PING_IMMEDIATELY ) wpseo_ping_search_engines(); else wp_schedule_single_event( ( time() + 300 ), 'wpseo_ping_search_engines' ); } } } // Instantiate class $wpseo_sitemaps_admin = new WPSEO_Sitemaps_Admin();