Skip to content

Instantly share code, notes, and snippets.


Chris Christoff chriscct7

View GitHub Profile
chriscct7 / MonsterInsights-disable-all-tracking.php
Created Apr 6, 2020
MonsterInsights Disable Frontend Tracking Disable Frontend Tracking for all users.
View MonsterInsights-disable-all-tracking.php
* Plugin Name: MonsterInsights Disable Frontend Tracking
* Description: Disable Frontend Tracking for all users.
* Version: 1.0.0
* Author: MonsterInsights Support Team
* Author URI:
chriscct7 / monsterinsights.php
Last active Feb 23, 2018
Remove conflicting styles/scripts from MI pages
View monsterinsights.php
Plugin Name: Imagify Conflict Fix for MonsterInsights
Plugin URI:
Description: Fixes conflict with Imagify on MonsterInsights admin pages
Version: 1.0.0
Author: MonsterInsights Support Team
Author URI:
License URI:

Keybase proof

I hereby claim:

  • I am chriscct7 on github.
  • I am chriscct7 ( on keybase.
  • I have a public key whose fingerprint is 8E2F D1C7 BD35 C9AB 1F9B 4154 EF28 0CFB E2DC EDFD

To claim this, I am signing this object:

chriscct7 / index.html
Created Aug 27, 2016
The danger of using _blank tags
View index.html
<p>This is my test page: <a target="_blank" href="test.html">Click here</a></p>
<p>Note, adding rel="noopener noreferrer" into the a element will solve this problem.</p>
chriscct7 / gist:d7d077afb01011b1839d
Last active Jan 23, 2020
Plugins that need to be updated to be ready for the move to PHP 5 constructors
View gist:d7d077afb01011b1839d

Important Notice for WordPress Plugins Using PHP 4 Style Constructors

The ability to use PHP 4 style constructors is getting removed from PHP. Without an update, many plugins will eventually no longer work (this is PHP breaking this backwards compatibility, not WordPress)

One of the more common uses of the PHP 4 style constructor (as opposed to PHP 5 style __construct() ) are plugins with widgets calling WP_Widget::WP_Widget() and/or parent::WP_Widget() and/or {object}->WP_Widget()

Note: Starting in WordPress 4.3, regardless of the PHP version in use on a server, WordPress will throw a deprecated notice when one of the PHP 4 style constructors is called specifically for widgets.

Basically instead of doing these:

chriscct7 / gist:4036082
Created Nov 8, 2012
Members class start
View gist:4036082
* Member Class
* The main hub of our login system
* PHP version 5.2.17 or higher