aioseop_disable_google_tag_manager

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_disable_google_tag_manager filter hook.

Description

$disable_gtm = apply_filters( 'aioseop_disable_google_tag_manager', __return_false() );

This filter can be used to dynamically disable our Google Tag Manager functionality.


Parameters (1)

0. (bool)
whether or not our Google Tag Manager functionality should be disabled. The default value is false.

Usage

The code example below can be used to dynamically disable our Google Tag Manager functionality for Date Archive pages:

add_filter( 'aioseop_disable_google_tag_manager', 'disable_google_tag_manager' );

function disable_google_tag_manager() {
        if( is_date() ) {
           return true;
        }
        return false;
}

Defined (1)

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

pro/aioseop_google_tag_manager.php
  • Was this helpful ?
  • YesNo
[i]
[i]
Skip to toolbar