WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Metronet Tag Manager

Integrate Google Tag Manager into your website.

Filtering Variables

If you choose to place variable values inside percentage signs (e.g., %replace_test%), you can filter these as necessary.

Here's an example:

add_filter( 'gtm_replace_test', 'gtm_replace_test', 10, 3 );
function gtm_replace_test( $total_match, $match, $post_id ) {
    return "replaced with content";
}

The filter name is gtm_ with the suffix of replace_test, since that content is inbetween the percentage signs.

Requires: 3.9 or higher
Compatible up to: 4.7
Last Updated: 4 weeks ago
Active Installs: 5,000+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2 100,3,3 100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1