Skip to content

Commit

Permalink
Files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Price-Ward committed Jun 1, 2018
0 parents commit e0b94ba
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions composer.json
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"
}
}
17 changes: 17 additions & 0 deletions remove-monsterinsights-tracking-on-a-certain-page.php
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;
}
?>

0 comments on commit e0b94ba

Please sign in to comment.