aioseo_disable

Purpose

This filter can be used to prevent All in One SEO from outputting any data (meta data, Open Graph markup, schema, etc.).

Arguments (1)

  1. $disabled (boolean) – Whether All in One SEO should be disabled. Defaults to false.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from outputting any data on term pages.

add_filter( 'aioseo_disable', 'aioseo_disable_term_output' );

function aioseo_disable_term_output( $disabled ) {
   if ( is_category() || is_tag() || is_tax() ) {
      return true;
   }
   return false;
}