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 | |
// prepare arguments | |
$args = array( | |
'orderby' => 'display_name', // Order by display name | |
'exclude' => array( 2, 5, ), // Remove the two main admins | |
); | |
// Create the WP_User_Query object |
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 | |
// prepare arguments | |
$args = array( | |
'role' => 'author', | |
'query_id' => 'wps_not_author', | |
'meta_query' => array( | |
array( | |
'key' => 'wpsand_capabilities', | |
'value' => '"author"', |
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 | |
// prepare arguments | |
$args = array( | |
'role' => 'author', | |
'query_id' => 'wps_not_author', | |
'meta_query' => array( | |
array( | |
'key' => 'wpsand_capabilities', | |
'value' => '"editor"', |
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 | |
/* | |
* Gets previous page | |
* | |
* If the previous page is a page outside the site, returns the storefront page. | |
* | |
* @param $args array Optional Args | |
* @return $referrer string | |
*/ |
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 | |
add_action( 'init', 'wps_lords_add_endpoints', 15 ); | |
/** | |
* Lord's Endpoint addition for Manufacturer and Category Combination | |
* | |
* @uses add_permastruct() | |
* @uses add_rewrite_rule() | |
*/ | |
function wps_lords_add_endpoints() { |
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 | |
/** | |
* Add "Email Us" link to footer | |
* | |
* @author Bill Erickson | |
* @author Travis Smith (modified) | |
* @link http://www.billerickson.net/overriding-options-and-meta | |
*/ | |
function be_email_us() { |
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
/** | |
* Creates a Shopp Promotion. | |
* | |
* $defaults = array( | |
* // Enable the promo | |
* 'status' => 'enabled', | |
* | |
* // DATES | |
* 'starts' => array( | |
* 'month' => '', |
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 | |
add_action( 'wp_enqueue_scripts', 'wps_child_script' ); | |
/** | |
* Enqueues Appropriate Scripts when needed based on Debugging. | |
* Assumes that the normal *.js is the minified version & *-dev.js is beautified version. | |
* | |
* @uses wp_enqueue_script() WP adds JS to page safely. | |
* @uses WP_DEBUG Constant: Triggers "debug" mode throughout WordPress |