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
// Must be in an external file or loaded at the end of wp_footer() | |
jQuery(document).ajaxSend(function(e, x, a) { | |
var awesome = 1; | |
a.data += '&' + jQuery.param( {is_awesome: awesome} ); | |
}); |
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
/* | |
***** | |
UPDATE: This gist is no longer needed. | |
The better way to integrate PMPro and bbPress is to the use the pmpro-bbpress plugin, | |
which is now available in the WordPress repository: | |
http://wordpress.org/plugins/pmpro-bbpress/ | |
***** | |
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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
/* !-------- WORDPRESS CLASSES ------------------- */ | |
/*------------------------------------------------------------ *\ | |
\*------------------------------------------------------------ */ | |
/* !-- WP WYSIWYG Editor Styles -- */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
} | |
.alignleft, img.alignleft { | |
margin-right: 1.5em; |
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 | |
// since plugin version v1.0: | |
// Constants: | |
/** Multisite Toolbar Additions: Disable Custom Nav Menu for Super Admins */ | |
define( 'MSTBA_SUPER_ADMIN_NAV_MENU', FALSE ); | |
/** Multisite Toolbar Additions: Disable Plugin Support for Network Wide Plugins */ |
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: Easy Digital Downloads - Variable Pricing License Activation Limits | |
Plugin URL: http://easydigitaldownloads.com/extension/ | |
Description: Limit the number of license activations permitted based on variable prices | |
Version: 1.0 | |
Author: Pippin Williamson | |
Author URI: http://pippinsplugins.com | |
Contributors: mordauk | |
*/ |
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 | |
/** | |
* Show license key limit in [purchase_history] shortcode. | |
* | |
* @since 0.1.0 | |
*/ | |
function edd_site_count_downloads_license_limit_th() { | |
echo '<th class="edd-site-count-site-count">' . __( 'Site Count', 'edd-site-count' ) . '</th>'; |
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 | |
/* Show expire date in [purchase_history] table. */ | |
add_action( 'edd_purchase_history_header_after', 'my_edd_stuff_downloads_expire_th', 12 ); | |
add_action( 'edd_purchase_history_row_end', 'my_edd_stuff_downloads_expire_td', 12, 2 ); | |
/** | |
* Show expire date in [purchase_history] shortcode. | |
* | |
* @since 0.1.2 | |
*/ |
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_filter('wooslider_get_slides', 'shopp_wooslider', 10, 4); | |
public function shopp_wooslider($slides, $type, $args, $settings) { | |
if( is_shopp_product() ) { | |
$slides = array(); | |
if ( shopp('product', 'has-images') ) { | |
while( shopp('product','images') ) { | |
$data = array( 'content' => shopp('product','get-image',"setting={$args['size']}") ); |
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 | |
/** | |
* Show Has Purchased Item Message | |
* | |
* Prints a notice when user has already purchased the item. | |
* | |
* @since 1.0 | |
* @global $user_ID | |
* @param int $download_id Download ID | |
* @return void |
OlderNewer