Verify Email Domain
/** * 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
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * 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
function pj_edd_billing_address_tag( $payment_id ) { edd_remove_email_tag( ‘billing_address’ ); edd_add_email_tag( ‘billing_address’, __( ‘The buyer\’s billing address’, ‘easy-digital-downloads’ ), ‘pj_edd_billing_address_tag_callback’ ); } add_action( ‘edd_add_email_tags’, ‘pj_edd_billing_address_tag’, 99 ); function pj_edd_billing_address_tag_callback( $payment_id ) { $user_info = edd_get_payment_meta_user_info( $payment_id ); $user_address = ! empty( $user_info[‘address’]…Continue reading
/** * * @param array $attachments required Any existing attachments * @param int $payment_id optional ID of the current payment * @param array $payment_data optional The remaining payment data * @return array $attachments Now our attachment is added */ function…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
add_filter( ‘aioseo_breadcrumbs_trail’, function( $crumbs ) { if(is_singular(‘post’) || is_category()){ $blog = [ ‘label’ => ‘Blog’, ‘link’ => ‘https://lawsuitanalysis.com/blog/’, ‘type’ => ” ]; array_splice( $crumbs, 1, 0, [$blog] ); } return $crumbs; }, 10, 2);Continue reading
add_action( ‘plugins_loaded’, function() { add_filter( ‘wpaas_gd_sso_button_enabled’, ‘__return_false’, 99999999, 1 ); } );Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
/* Remove new user email for admin and user on Registration form */ remove_action( ‘edd_insert_user’, ‘edd_new_user_notification’, 10, 2 ); /* Remove new user email for admin and user on Checkout Registration form */ add_action( ‘edd_pre_process_purchase’, ‘prefix_remove_user_emails’ ); function prefix_remove_user_emails() {…Continue reading
function sumobi_edd_milestone_sales_alert( $purchase_id ) { // ID of download to check $download_id = 8; // sales milestone to reach $milestone = 100; // email/s to send the notification to. Add more emails to array if neccessary $send_to = get_option( ‘admin_email’…Continue reading
function jp_customize_verification_email( $message, $user_id ) { $user_data = get_userdata( $user_id ); $url = edd_get_user_verification_url( $user_id ); $from_name = edd_get_option( ‘from_name’, wp_specialchars_decode( get_bloginfo( ‘name’ ), ENT_QUOTES ) ); $message = sprintf( __( “Howdy %s,\n\nYour account with %s needs to be verified…Continue reading