-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kevin Price-Ward
committed
Jun 1, 2018
0 parents
commit e0b94ba
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "thelar/remove-monsterinsights-tracking-on-a-certain-page", | ||
"description": "", | ||
"keywords": ["wordpress", "plugin", "search"], | ||
"homepage": "https://github.com/thelar/remove-monsterinsights-tracking-on-a-certain-page", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Kevin Price-Ward", | ||
"email": "[email protected]", | ||
"homepage": "" | ||
} | ||
], | ||
"type": "wordpress-plugin", | ||
"require": { | ||
"php": ">=5.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
/* | ||
Plugin Name: Remove MonsterInsights Tracking on a lost password Page | ||
Plugin URI: https://www.monsterinsights.com | ||
Description: Removes MonsterInsights tracking on a lost password page | ||
Version: 1.0.2 | ||
Author: Chris Christoff | ||
Author URI: https://www.monsterinsights.com | ||
*/ | ||
add_filter( 'monsterinsights_track_user', 'track_on_page' ); | ||
function track_on_page( $track ) { | ||
if ( ! is_admin() && get_the_ID() == 20 ) { | ||
return false; | ||
} | ||
return $track; | ||
} | ||
?> |