wpseo_allow_xml_sitemap_ping хук-фильтр . Yoast 1.0
Filter: 'wpseo_allow_xml_sitemap_ping' - Check if pinging is not allowed (allowed by default).
Использование
add_filter( 'wpseo_allow_xml_sitemap_ping', 'filter_function_name_6643' ); function filter_function_name_6643( $allow_ping ){ // filter... return $allow_ping; }
- $allow_ping(true/false)
- The boolean that is set to true by default.
Где вызывается хук
wpseo_allow_xml_sitemap_ping
wpseo_allow_xml_sitemap_ping
yoast/inc/sitemaps/class-sitemaps-admin.php 74
if ( apply_filters( 'wpseo_allow_xml_sitemap_ping', true ) === false ) {
yoast/inc/sitemaps/class-sitemaps.php 548
if ( apply_filters( 'wpseo_allow_xml_sitemap_ping', true ) === false ) {