Do On Complete
function pw_edd_do_on_complete_purchase( $payment_id = 0 ) { // Execute your code here } add_action( ‘edd_complete_purchase’, ‘pw_edd_do_on_complete_purchase’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function pw_edd_do_on_complete_purchase( $payment_id = 0 ) { // Execute your code here } add_action( ‘edd_complete_purchase’, ‘pw_edd_do_on_complete_purchase’ );Continue reading
function sumobi_edd_receipt_show_download_files() { return false; } add_filter( ‘edd_receipt_show_download_files’, ‘sumobi_edd_receipt_show_download_files’ );Continue reading
/** * Unhook default EDD discount field */ remove_action( ‘edd_checkout_form_top’, ‘edd_discount_field’, -1 ); /** * Show discount field by default * If you want a button, simply add Apply discount after the input field. * Because the discount is applied…Continue reading
/* * Modify the required fields for checkout * * Fields are identified by the input fields “name” attribute. * * This example shows how to make the last name field, which has a name attribute of “edd_last”, required */…Continue reading
function edd_custom_cart_row_text() { ?> This is your custom textContinue reading
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. * * @return void */ function prefix_add_sample_email_tag() { edd_add_email_tag( ‘custom_email_tag’, // Tag ‘This is a custom email tag!’, // Description ‘prefix_render_sample_email_tag’, // Callback ‘Custom Email Tag’, // Label array( ‘order’ ), // Optional…Continue reading