Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc Woodyard MarcWoodyard

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am marcwoodyard on github.
  • I am marcwoodyard (https://keybase.io/marcwoodyard) on keybase.
  • I have a public key whose fingerprint is E1DC 6EB8 ED30 1036 0100 3C58 1108 6CFB 6052 8083

To claim this, I am signing this object:

@MarcWoodyard
MarcWoodyard / plugin.php
Created Sep 6, 2016 — forked from jeherve/plugin.php
[Jetpack] Force deactivate all modules but stats
View plugin.php
<?php
// Force deactivate all Jetpack modules, except for stats
function jeherve_force_deactivate_everything_but_stats() {
if ( class_exists( 'Jetpack_Options' ) )
Jetpack_Options::update_option( 'active_modules', array_unique( array( 'stats' ) ) );
}
add_action( 'init', 'jeherve_force_deactivate_everything_but_stats' );
@MarcWoodyard
MarcWoodyard / filter-admin-menu.php
Last active Jun 20, 2016
Hides Any WordPress admin menu link from non-admin users.
View filter-admin-menu.php
<?php
/*
Plugin Name: Filter Admin Menu
Plugin URI: https://marcwoodyard.com
Description: Hides Any WordPress admin menu link from non-admin users.
Version: 0.1
Author: Marc Woodyard
Author URI: https://marcwoodyard.com
*/
View blacklist_jetpack_modules.php
<?php
/*
Plugin Name: Blacklist Jetpack Modules
Plugin URI: https://gist.github.com/ParhamG/6494979
Description: Blacklist Jetpack modules.
Author: Parham Ghaffarian
Author URI: http://parh.am
Version: 0.1.3.1
*/