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
http://pippinsplugins.com/modular-plugins-presentation-from-wordcamp-kansas-city-2012/ | |
http://pippinsplugins.com/lets-talk-extensible-code/ | |
http://wp.tutsplus.com/tutorials/the-beginners-guide-to-wordpress-actions-and-filters/ | |
http://wp.tutsplus.com/tutorials/plugins/writing-extensible-plugins-with-actions-and-filters/ |
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 | |
class EDD_Sample_Email_Tag { | |
function __construct() { | |
add_action( 'edd_add_email_tags', array( $this, 'add_sample_tag' ), 100 ); | |
} |
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: Settings Import / Export Example Plugin | |
* Plugin URI: http://pippinsplugins.com/building-a-settings-import-and-export-feature | |
* Description: An example plugin that shows how to create a settings import and export feature | |
* Author: Pippin Williamson | |
* Author URI: http://pippinsplugins.com | |
* Version: 1.0 | |
*/ |
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
// user login form | |
function pw_rcp_login_form( $atts, $content = null ) { | |
global $post; | |
$prev_page = $_SERVER['HTTP_REFERER']; | |
extract( shortcode_atts( array( | |
'redirect' => $prev_page, | |
'class' => 'rcp_form' |
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: Restrict Content Pro - Collect Billing Address | |
* Description: Collect customers billing address during registration through Restrict Content Pro | |
* Author: Pippin Williamson | |
* Version: 1.0 | |
*/ | |
class RCP_Billing_Address { |
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 | |
/** | |
* Upgrade Functions | |
* | |
* @package Easy Digital Downloads | |
* @subpackage Download Functions | |
* @copyright Copyright (c) 2012, Pippin Williamson | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
* @since 1.3.1 |
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 | |
# | |
# rt-theme loop | |
# | |
global $args,$content_width,$paged; | |
add_filter('excerpt_more', 'no_excerpt_more'); | |
//varialbles | |
$video_width = ($content_width =="960") ? 940 : 606; |
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: Restrict Content Pro - Custom User Fields | |
Description: Illustrates how to add custom user fields to the Restrict Content Pro registration form that can also be edited by the site admins | |
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 | |
function pw_edd_add_email_confirmation() { | |
?> | |
<p> | |
<label class="edd-label" for="edd-email-confirm"> | |
<?php _e('Confirm Your Email Address', 'easy-digital-downloads'); ?> | |
<span class="edd-required-indicator">*</span> | |
</label> | |
<span class="edd-description" id="edd-email-description"><?php esc_html_e( 'Please confirm your email address.', 'easy-digital-downloads' ); ?></span> |
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: Affiliate role on registration | |
*/ | |
function pw_affwp_set_role_on_registration( $affiliate_id = 0 ) { | |
$user_id = affwp_get_affiliate_user_id( $affiliate_id ); | |
$user = new WP_User( $user_id ); | |
$user->add_role( 'affiliate' ); |
NewerOlder