This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Really Simple Series | |
Plugin URI: http://krogsgard.com/2012/simple-wordpress-series-plugin | |
Description: This plugin changes the default order of selected categories used to ascending (oldest first). It also lists all posts in the selected categories at the bottom of each post in the series. | |
Version: 0.2 | |
Author: Brian Krogsgard & Pippin Williamson | |
Author URI: http://krogsgard.com | |
Contributors: krogsgard, mordauk | |
Thanks: Tom McFarlin, and Ryan Imel for your help, even though you don't know it : ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function enhanceins_zip_code_check( $result, $value, $form, $field ) { | |
global $wpdb; | |
if ( !$result[ 'is_valid' ] ) { | |
return $result; | |
} | |
if ( !is_array( $value ) ) { | |
$value = explode( ',', $value ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var custom_zip_search = '<div class="zip-search">' | |
+ '<label class="alignleft">Enter Zip:<span class="help alignright"></span></label>' | |
+ '<input type="text" name="zip_code_ZIPID" />' | |
+ '<div class="add-zip alignleft"><span class="green-arrow"></span> <span class="available">Available</span> For You To Represent.' | |
+ '<p><a href="#" class="add-another">Add another zip code for $100 annually</a></p>' | |
+ '</div></div>'; | |
$( '.checkout-2 .gfield_checkbox li' ).each( function() { | |
var $this = $( this ), | |
$checkbox = $( 'input[type="checkbox"]', $this ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Pods | |
*/ | |
class PodsAPI { | |
/** | |
* @var PodsAPI | |
*/ | |
static $instance = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Helper function for insert and replace. | |
* | |
* Runs an insert or replace query based on $type argument. | |
* | |
* @access private | |
* @since 3.0.0 | |
* @see wpdb::prepare() | |
* @see wpdb::$field_types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//**Most Commented On Posts Loop same as before**/ | |
$args = array( | |
'date_query' => array( | |
//set date ranges with strings! | |
'after' => '1 week ago', | |
'before' => 'today', | |
//allow exact matches to be returned | |
'inclusive' => true, | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//**Most Commented On Posts Loop same as before**/ | |
$args = array( | |
'date_query' => array( | |
//set date ranges with strings! | |
'after' => '1 week ago', | |
'before' => 'today', | |
//allow exact matches to be returned | |
'inclusive' => true, | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function access_for_all_admins( $access ) { | |
if ( !$access && current_user_can( 'manage_options' ) ) { | |
$access = true; | |
} | |
return $access; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Pods Alternative Cache | |
Plugin URI: http://pods.io/ | |
Description: Alternative caching engine for Pods for large sites on hosts with hard limits on how much you can cache | |
Version: 1.0 | |
Author: The Pods Framework Team | |
Author URI: http://pods.io/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Read only text field, optionally allows for specific users to edit | |
* @package Fieldmanager | |
*/ | |
class Fieldmanager_ReadOnly extends Fieldmanager_TextField { | |
/** | |
* The capability a user must have to be able to edit normally | |
* |