Tag: gravity-forms
GravityForms_DIR_AB_ACF – Gravity Forms & Feeds ACF Fields
/** * WPCode Snippet: Gravity Forms & Feeds ACF Fields * Description: Registers ACF fields for form and feed data + notification/confirmation content * Location: Run Everywhere * Priority: 10 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘acf/init’, function() {…Continue reading
GravityView_DIR_AA_CPT – GravityView Views CPT Registration
/** * WPCode Snippet: GravityView Views CPT Registration * Description: Registers custom post type for GravityView with full REST API support * Location: Run Everywhere * Priority: 0 */ defined( ‘ABSPATH’ ) || exit; add_action( ‘init’, function() { $labels =…Continue reading
Gravity Forms Notifications Editor – To prevent switching the editor tabs by mistake
add_action( ‘admin_init’, ‘disable_tinymce_for_notifications’); function disable_tinymce_for_notifications() { if ( ( GFForms::is_gravity_page() && rgget( ‘page’ ) === ‘gf_edit_forms’ && rgget( ‘view’ ) === ‘settings’ ) && rgget( ‘subview’ ) === ‘notification’ ) { add_filter( ‘user_can_richedit’, ‘__return_false’ ); } }Continue reading
Gravity Forms email template
// adjust HTML template of emails function notification_template( $template ) { $siteurl = ‘https://aveni.ai’; $logourl = ‘https://aveni.ai/wp-content/themes/aveni/assets/img/aveni-logo-white.png’; $logoalt = ‘Aveni AI’; $email = ‘[email protected]’; $themecolor= ‘#1B223A’; $template = ‘ {subject} {message} Aveni AI – Cutting-edge speech analytics for regulated industries…Continue reading
Add recaptcha policy to all gravity forms
add_filter( ‘gform_submit_button’, ‘add_recaptcha_branding’, 10, 2 ); function add_recaptcha_branding( $button, $form ) { return $button .= ‘ This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. ‘; }Continue reading
Remove required legend from Gravity Forms
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin (copy)
// Add custom css: quick buttons and accordion at the top of the GravityWP – CSS Selector modal function my_custom_gwp_css_selector_add_css() { $html .= “<!– Custom CSS 2nd Custom CSS –> Custom CSS Section Font Smaller (90%) Section Font Smaller (75%)…Continue reading
Gravity Forms: Gravity Wiz // Gravity Forms // Unrequire Required Fields for Testing
/** * Gravity Wiz // Gravity Forms // Unrequire Required Fields for Testing * * When bugs pop up on your forms, it can be really annoying to have to fill out all the required fields for every test *…Continue reading
Gravity Forms: Add Custom CSS Buttons to GravityWP CSS Ready Classes Plugin
// Add custom css: quick buttons and accordion at the top of the GravityWP – CSS Selector modal function my_custom_gwp_css_selector_add_css() { $html .= “ Custom CSS Section Font Smaller (90%) Section Font Smaller (75%) Gravity PDF GravityPDF Page Break GravityPDF…Continue reading