https://sites.google.com/d/1avAsGl7oMBLJIChoaW9yaoOiAr-B6jfK/p/1kbx8BATlg53-QAVM9O8IXHJhuAw0qg1E/
https://sites.google.com/d/1avAsGl7oMBLJIChoaW9yaoOiAr-B6jfK/p/1kbx8BATlg53-QAVM9O8IXHJhuAw0qg1E/Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
https://sites.google.com/d/1avAsGl7oMBLJIChoaW9yaoOiAr-B6jfK/p/1kbx8BATlg53-QAVM9O8IXHJhuAw0qg1E/Continue reading
add_filter( ‘mepr-stripe-elements-appearance’, function( $style ) { $style[ ‘theme’ ] = ‘night’; return $style; });Continue reading
function change_vat_customer_type_label() { ?>Continue reading
function mepr_restrict_email_patterns_for_specific_plans($errors) { // Define the patterns to search for in email addresses $blocked_email_patterns = array( ‘xxx@gmail’, ‘xyz@’, ‘test@test’ ); // Define specific subscription plan IDs that require email restriction $restricted_plan_ids = array( 123, 456 ); // Replace with actual…Continue reading
function mepr_restrict_email_patterns_for_all_plans($errors) { // Define the patterns to search for in email addresses $blocked_email_patterns = array( ‘xxx@gmail’, ‘xyz@’, ‘test@test’ ); // Retrieve the email address from the form submission $email_address = isset( $_POST[ ‘user_email’ ] ) ? sanitize_email( trim( $_POST[…Continue reading
function custom_invoice_script() { ?>Continue reading
function mepr_product_price($product_price, $coupon_code, $product) { if ($product->ID === 123) { $product_price = 50; } return $product_price; } add_filter(‘mepr_adjusted_price’, ‘mepr_product_price’, 10, 3);Continue reading
function mepr_restrict_email_domains($errors) { # Allowed email domains. $allowed_email_domains = array(‘gmail.com’, ‘hotmail.com’); $email_address = isset($_POST[‘user_email’]) ? sanitize_email(trim($_POST[‘user_email’])) : ”; # Don’t bother validating if the email is empty. if(empty($email_address)) { return $errors; } $user_email_array = explode(‘@’, $email_address); $user_email_domain = array_pop($user_email_array); #…Continue reading