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: QnD wp_mail filter | |
Plugin URI: http://butlerblog.com/ | |
Description: A quick and dirty plugin to change the wp_mail "from" address to be something other than wordpress@mydomain.com. | |
Version: 1.2 | |
Author: Chad Butler | |
Author URI: http://butlerblog.com/ | |
License: GPLv2 | |
*/ |
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 | |
/** | |
* Customize Event Query using Post Meta | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/customize-the-wordpress-query/ | |
* @param object $query data | |
* | |
*/ |
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: WP-Members Disable New User Notification | |
Plugin URI: http://rocketgeek.com | |
Description: Disables the WP new user notification email when user is created via the Users > Add New screen. | |
Version: 1.0 | |
Author: Chad Butler | |
Author URI: http://butlerblog.com/ | |
License: GPLv2 | |
*/ |
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 keyword_density_js(){ | |
?> | |
<script src="<?php bloginfo('template_url'); ?>/js/jquery.js" type="text/javascript"></script> | |
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.wordstats.js"></script> | |
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.wordstats.en.js"></script> | |
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/highlight.js"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
var count = 8; |
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 | |
global $wp; | |
$current_url = home_url( add_query_arg( array(), $wp->request ) ); | |
?> | |
<a href="<?php echo wp_login_url( $current_url ); ?>">Log In</a> |
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 to your functions.php file below this line. | |
/** | |
* Basic file uploader script for WP-Members. | |
* | |
* This code snippet handles file uploads when the "file" field type is | |
* selected for a registration field. Note that this snippet is basic and | |
* is not intended to be a full featured solution. Please do not ask me | |
* for support unless you are already a premium support subscriber at |
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 // Ignore this line. | |
add_filter( 'wpmem_user_upload_dir', 'my_user_upload_dir' ); | |
function my_user_upload_dir( $args ) { | |
// Change default directory if user ID is "10" | |
if ( 10 == $args['user_id'] ) { | |
$args['wpmem_dir'] = 'special_dir/', | |
$args['user_dir'] = 'special_sub' |
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 | |
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 | |
/** | |
* This gist is set up to diplay the correct way to customize forms in WP-Members. | |
* | |
* It is in reference to this script file: | |
* https://github.com/danahutchins/wp-members-bootstrap-forms/blob/master/wp-members-pluggable.php | |
* | |
* The author of that script indicates in this post: | |
* http://www.inforest.com/updating-wp-members-wordpress-plugin-for-twitter-bootstrap/ | |
* that "Rather than going to the trouble of writing hooks, I decided to simply |
OlderNewer