I hereby claim:
- I am benmay on github.
- I am benmay (https://keybase.io/benmay) on keybase.
- I have a public key whose fingerprint is 5F8D B6B6 6366 342F E6E2 6CA7 0D9E 2C05 8DBA D0D8
To claim this, I am signing this object:
tar -zcvf backup-name.tar.gz --exclude='wp-content/uploads/*' /var/www/site.com |
#!/bin/sh | |
# Set DB Constants | |
DBHOST="localhost" | |
DBUSER="root" | |
DBPASS="123" | |
DBNAME="wp_$1" | |
# Set WP Constants | |
ADMIN_NAME="my_admin_account" |
<?php | |
/* | |
Plugin name: Single user login | |
Plugin URI: | |
Description: | |
Author: Ben May | |
Author URI: | |
Version: 0.1 | |
*/ |
I hereby claim:
To claim this, I am signing this object:
<?php | |
Class MediaUploaderTweak { | |
static function run() { | |
add_filter( 'manage_media_columns', array( 'MediaUploaderTweak', 'cols' ), 1 ); | |
add_action( 'manage_media_custom_column', array( 'MediaUploaderTweak', 'col' ), 1, 2 ); | |
add_action( 'admin_head-upload.php', array( 'MediaUploaderTweak', 'admin_head' ) ); | |
} |
$email = $this->email; | |
global $wpdb; | |
- if($fix) | |
- {$fix = "comment_post_ID = $fix AND ";} | |
+ if($fix) { | |
+ $fix_comments = "comment_post_ID = $fix AND "; | |
+ $fix_postmeta = "post_ID = $fix AND "; | |
+ } | |
<?php | |
/* | |
Plugin Name: Pippity | |
Plugin URI: http://pippity.com | |
Description: Pippity is a popup plugin that your readers won't hate! | |
Version: 1.14.0.0 | |
Author: Pippity LLC | |
Author URI: http://pippity.com | |
*/ |
if (is_category('some-category')): | |
query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat=3'); |
jQuery(document).ready(function($) { | |
/* Array of ACF items we're working on */ | |
var acf_items = new Array( 'acf-image', 'acf-pdf', 'acf-rtf', 'acf-audio_upload', 'acf-video_low_res', 'acf-video_high_res' ); | |
/* hide all boxes */ | |
acf_cleanup( 'none' ); | |
/* check if there is a taxonomy set */ | |
var selected_id = $('#mc-formatchecklist input:radio:checked').val(); |