aioseop_robotstxt_sitemap_url

Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The All in One SEO Pack aioseop robotstxt sitemap url filter hook.

Description

if ( apply_filters( ‘aioseop_robotstxt_sitemap_url’, true ) ) {
add_action( ‘do_robots’, array( $this, ‘do_robots’ ), 100 );
}

This filter can be used to remove the URL for the XML Sitemap from the virtual robots.txt file generated by All in One SEO Pack or by WordPress.


Parameters (1)

0.(bool)
determines whether URL should be added or not. Defaults to true.

Usage

add_filter( 'aioseop_robotstxt_sitemap_url', '__return_false' );

Defined (1)

The filter is defined in the following location(s).

/modules/aioseop_sitemap.php

This hook was added in version 3.0 of All in One SEO Pack.

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar