$f_tag, 'tag__not_in' => $f_tag_no, 'category_name' => $f_cat, 'offset' => $f_off, 'posts_per_page' => 1, ) ); if ( $query->have_posts() ) { ?> have_posts() ) : $query->the_post(); ?>
set('posts_per_page', -1); } } //function add_action('pre_get_posts', 'dem_posts_per_page'); function ppcp_disable_funding($disabled_funding) { $disabled_funding[] = 'ideal'; $disabled_funding[] = 'paylater'; return $disabled_funding; } add_filter('gform_ppcp_disable_funding', 'ppcp_disable_funding'); /** * Block specific email addresses from being submitted in any Gravity Forms email field. * * This code adds server-side validation using the gform_field_validation hook. * It checks the full email address (case-insensitive) against a blacklist. * * For real-time feedback when the user leaves (blurs) the email field: * - The form must be embedded with AJAX enabled: [gravityform id="X" ajax="true"] * - Validation will trigger on blur for email fields automatically in AJAX mode. * * Add this code to your theme's functions.php file or a custom plugin. */ // List of blocked email addresses (add as many as needed, lowercase recommended) $blocked_emails = array( 'Yalipro111@gmail.com', 'vadilingga47@gmail.com', 'ylerbates202@yahoo.com', 'tbates770@gmail.com', 'pismoismydog@gmail.com', 'oviedofab@gmail.com', 'mac12741@hotmail.com', 'lucasfiuzaede@gmail.com', 'justbrianspencer@hotmail.com', 'itscmreid@outlook.com', 'idafit208@icloud.com', 'Ibizajess@hotmail.com', 'gawelsh3@gmail.com', 'drewkud@gmail.com', 'joelstewarthare25@gmail.com' ); add_filter( 'gform_field_validation', 'block_specific_emails', 10, 4 ); function block_specific_emails( $result, $value, $form, $field ) { // Only apply to Email fields if ( $field->type === 'email' ) { // Normalize the entered email to lowercase for case-insensitive comparison $entered_email = strtolower( trim( $value ) ); global $blocked_emails; if ( in_array( $entered_email, $blocked_emails, true ) ) { $result['is_valid'] = false; $result['message'] = 'This email address is not allowed.'; } } return $result; }