Disable the “grab image” setting for Divi on checkout

add_filter( ‘et_grab_image_setting’, ‘prefix_disable_image_setting_on_checkout’, 100 ); /** * Disable the Divi image setting on checkout. * * @param bool $setting * @return bool */ function prefix_disable_image_setting_on_checkout( $setting ) { return edd_is_checkout() ? false : $setting; }Continue reading

Changing the Name Attribute of a Hidden Field

/** * Custom function to change the name attribute of hidden fields in any form. * * @link https://wpforms.com/developers/how-to-change-the-name-attribute-of-a-hidden-field/ */ function wpf_field_properties_hidden( $properties, $field, $form_data ) { // Optional, you can limit to specific forms. Below, we restrict output to…Continue reading

Hiding the Currency Symbol in WPForms Total Field

/** * Hide currency symbol in WPForms. */ add_filter( ‘wpforms_currencies’, function( $currencies ) { $form_data = wpforms()->obj( ‘process’ )->form_data ?? []; if ( empty( $form_data ) ) { $frontend = wpforms()->obj( ‘frontend’ ); if ( ! empty( $frontend->forms ) )…Continue reading