This file contains hidden or 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 | |
/** | |
* Filters get_post_meta() to ensure old commission status checks don't fail | |
* | |
* The status for commission records used to be stored in postmeta, now it's stored in a taxonomy | |
* | |
* @access private | |
* @since 2.8 | |
* @return mixed |
This file contains hidden or 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 | |
// Begin FES integration | |
// add button to the post button listing | |
function fes_shipping_field_button( $title ) { | |
if ( version_compare( fes_plugin_version, '2.2', '>=' ) ) { | |
echo '<button class="fes-button button" data-name="edd_simple_shipping" data-type="action" title="' . $title . '">'. __( 'Shipping', 'edd-simple-shipping' ) . '</button>'; | |
} | |
} | |
add_action('fes_custom_post_button', 'fes_shipping_field_button'); |
This file contains hidden or 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 hidden or 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: PD101 Extending Classes Example | |
* Description: An example of how to extend a class | |
* Author: Pippin Williamson | |
*/ | |
class PD101_Base { |
This file contains hidden or 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: Update Previous Order Numbers for EDD | |
* Description: For users of the sequential order number beta, use this before you get new orders to have your previous orders sequentially numbered | |
* Version: 0.1 | |
* Author: Chris Christoff | |
* Author URI: http://www.chriscct7.com | |
*/ | |
function update_script_edd_seq_numbers(){ |
This file contains hidden or 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 get_the_user_ip() { | |
if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { | |
//check ip from share internet | |
$ip = $_SERVER['HTTP_CLIENT_IP']; | |
} elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
//to check ip is pass from proxy | |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} else { | |
$ip = $_SERVER['REMOTE_ADDR']; |
This file contains hidden or 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
[Tue Mar 18 19:19:44 2014] [error] [client 54.241.31.99] Stripe Notice: Undefined property of Stripe_Customer instance: customer | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: stripos() expects parameter 1 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/dailymotion.php on line 22, referer: http://pippinsplugins.com/wp-admin/post-new.php | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: preg_match_all() expects parameter 2 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/dailymotion.php on line 29, referer: http://pippinsplugins.com/wp-admin/post-new.php | |
[Tue Mar 18 19:35:21 2014] [error] [client 72.209.182.221] PHP Warning: stripos() expects parameter 1 to be string, array given in /nas/wp/www/cluster-1117/pippinsplugins/wp-content/plugins/jetpack/modules/shortcodes/blip.php on line 10, referer: http://pippinsplugins.com/wp-admin |
This file contains hidden or 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_recurring_payment_received_notice( $payment, $parent_id, $amount, $txn_id, $unique_key ) { | |
$user_id = edd_get_payment_user_id( $parent_id ); | |
$email = edd_get_payment_user_email( $parent_id ); | |
$user_data = get_userdata( $user_id ); | |
$subject = 'Payment Received'; | |
$message = "Hello $usera_data->display_name, your payment for $amount has been received. Thanks!"; |
This file contains hidden or 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_rcp_custom_email_notice( $message, $user_id ) { | |
$user_data = get_userdata( $user_id ); | |
$user_email = $user_data->user_email; | |
$message = "Hello admin, this is a custom alert message!\n\n"; | |
$message .= "$user_email just signed up for an account."; | |
return $message; |
This file contains hidden or 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 | |
// Use minified libraries if SCRIPT_DEBUG is turned off | |
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min'; | |
wp_enqueue_script( 'my-script-handle', plugin_dir_url( __FILE__ ) . 'assets/my-file' . $suffix . '.js', array( 'jquery' ) ); |