Custom Cart Row
function edd_custom_cart_row_text() { ?> This is your custom textContinue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
function sumobi_edd_force_account_creation_by_cart_total( $ret ) { // enter the cart total amount that should force account creation $limit = 100; // get the cart total $cart_total = edd_get_cart_total(); if ( $cart_total >= $limit ) { // if the cart total is…Continue reading
function pd_edd_pre_update_user_profile( $user_id, $userdata ) { // How many characters should the password be? $length = 8; $password = isset( $_POST[‘edd_new_user_pass1’] ) ? $_POST[‘edd_new_user_pass1’] : ”; if ( ! empty( $password ) && ( strlen( $password ) < $length )…Continue reading
/* Remove the ‘Delete’ option from the Payment List Quick Action * This can require a fine tuning of the user roles, typically handeled in a plugin * Example: http://wordpress.org/plugins/user-role-editor/ * * Source of snippet: https://easydigitaldownloads.com/support/topic/custom-payment-history-view-per-user-role/ */ function ck_edd_remove_order_trash_action( $row_actions,…Continue reading
function kjm_modify_user_verification_url_expiration( $url ) { // EDD default is ‘+24 hours’. ‘days’ also works $url = add_query_arg( ‘ttl’, strtotime( ‘+48 hours’ ), $url ); return $url; } add_filter( ‘edd_get_user_verification_url’, ‘kjm_modify_user_verification_url_expiration’ );Continue reading
function edd_hidden_callback( $args ) { global $edd_options; if ( isset( $edd_options[ $args[‘id’] ] ) ) $value = $edd_options[ $args[‘id’] ]; else $value = isset( $args[‘std’] ) ? $args[‘std’] : ”; $size = ( isset( $args[‘size’] ) && ! is_null( $args[‘size’]…Continue reading