Add User to RCP Subscription on Purchase
function pw_edd_add_customer_to_level( $payment_id = 0 ) { $user_id = edd_get_payment_user_id( $payment_id ); if( $user_idContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function pw_edd_add_customer_to_level( $payment_id = 0 ) { $user_id = edd_get_payment_user_id( $payment_id ); if( $user_idContinue reading
function pw_edd_payment_icon( $icons = array() ) { $icons[‘url/to/your/image/icon.png’] = ‘Name of the Payment Method’; return $icons; } add_filter( ‘edd_accepted_payment_icons’, ‘pw_edd_payment_icon’ );Continue reading
function sumobi_edd_purchase_form_before_submit() { ?> Your custom textContinue reading
function pw_edd_remove_last_name_field() { remove_action( ‘edd_purchase_form_after_user_info’, ‘edd_user_info_fields’ ); remove_action( ‘edd_register_fields_before’, ‘edd_user_info_fields’ ); } add_action( ‘init’, ‘pw_edd_remove_last_name_field’ ); function pw_edd_user_info_fields() { if ( is_user_logged_in() ) : $user_data = get_userdata( get_current_user_id() ); endif; ?> *Continue reading
/** * Register a custom email tag. * * Uses edd_add_email_tag(). See includes/emails/tags.php for full parameter documentation. * * @return void */ function eddwp_add_sample_email_tag() { edd_add_email_tag( ‘custom_email_tag’, __( ‘This tag will display the currency of the order.’, ‘your-text-domain’ ), ‘eddwp_render_sample_email_tag’,…Continue reading
/** * @link http://sumobi.com/show-shop-vendors-email-download-purchased/ * * Example: * For more information about your order, please contact one of the following vendors: * {vendor_emails} */ /** * Add a {vendor_emails} tag */ function sumobi_edd_email_tags( $email_tags ) { $email_tags[] = array( ‘tag’…Continue reading
function jp_no_email_free( $payment_id ) { $amount = edd_get_payment_amount( $payment_id ); if ( 0 == $amount ) { remove_action( ‘edd_complete_purchase’, ‘edd_trigger_purchase_receipt’, 999, 1 ); // This disables customer purchase receipts remove_action( ‘edd_admin_sale_notice’, ‘edd_admin_email_notice’, 10, 2 ); // This disables email notices…Continue reading
/** * Send emails when purchase is pre-approved */ function edd_pre_approval_emails_send_emails( $payment_id, $new_status, $old_status ) { // Make sure that payments are only completed once if ( $old_status == ‘publish’ || $old_status == ‘complete’ ) { return; } // Make…Continue reading
/** * Verify the domain on the email address is at least setup with DNS * * @param bool $is_banned If the email has passed previous checks * @param string $email The email address to verify * @return bool If…Continue reading
// create the HTML for the custom template function pw_edd_custom_email_template() { echo ‘ ‘; echo ‘ ‘; echo ‘{email}’; // this tag is required in order for the contents of the email to be shown echo ‘ ‘; echo ‘…Continue reading