Skip to content

Instantly share code, notes, and snippets.

@faishal
faishal / options-monitor.sh
Created July 10, 2018 03:32 — forked from tott/options-monitor.sh
WordPress options table size Nagios monitor
#!/bin/bash
OPTIND=1
verbose=0
dbuser=""
dbpasswd=""
while getopts "vh?U:P:H:" opt; do
case "$opt" in
<?php
add_action( 'widgets_init', 'nbclatino_top_posts_widget_init' );
function nbclatino_top_posts_widget_init() {
// Check if our vip stats function is available
if ( !function_exists( 'wpcom_vip_get_stats_array' ) && ! function_exists( 'stats_get_csv' ) )
return;
unregister_widget( 'Jetpack_Top_Posts_Widget' );
@faishal
faishal / README
Last active August 29, 2015 14:13 — forked from westonruter/README
Moved to https://github.com/xwp/vip-quickstart/pull/3