This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Skip Registration for Logged In Users | |
* http://gravitywiz.com/2012/04/24/skip-user-registration-for-logged-in-users/ | |
* Works for GF User Registration 3.0 and greater. | |
*/ | |
add_filter( 'gform_is_delayed_pre_process_feed', 'maybe_delay_feeds', 10, 4 ); | |
function maybe_delay_feeds( $is_delayed, $form, $entry, $slug ) { | |
if ( is_user_logged_in() && $slug == 'gravityformsuserregistration' ) { | |
return gf_user_registration()->has_feed_type( 'create', $form ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Forms Live Preview | |
* | |
* Preview your Gravity forms on the frontend of your website. Adds a "Live Preview" link to the Gravity Forms toolbar. | |
* | |
* @version 1.0.1 | |
* @author David Smith <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body img.gform_ajax_spinner { | |
display: none !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Give First Validation Error Focus | |
* http://gravitywiz.com/ | |
*/ | |
add_filter( 'gform_pre_render', 'gw_first_error_focus' ); | |
function gw_first_error_focus( $form ) { | |
add_filter( 'gform_confirmation_anchor_' . $form['id'], '__return_false' ); | |
?> | |
<script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (min-width: 320px) { | |
#recaptcha_cred_form_10_1_recaptcha.g-recaptcha { | |
position: relative; | |
width: 100%; | |
padding-top: 1.5em | |
} | |
#recaptcha_cred_form_10_1_recaptcha.g-recaptcha iframe { | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (min-width: 320px) { | |
body .gform_wrapper div.ginput_container.ginput_recaptcha { | |
position: relative; | |
width: 100%; | |
padding-top: 1.5em | |
} | |
body .gform_wrapper div.ginput_container.ginput_recaptcha iframe { | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
(function($) { | |
$(document).on('facetwp-refresh', function() { | |
if (! FWP.loaded && '' == FWP.build_query_string() && 'dev_sites/trenam/practices/cybersecurity' == FWP_HTTP.uri) { | |
FWP.facets['pa_hidden_facet'] = ['cybersecurity']; | |
} | |
}); | |
})(jQuery); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( ‘gform_tabindex’, ‘gform_tabindexer’, 10, 2 ); | |
function gform_tabindexer( $tab_index, $form = false ) { | |
$starting_index = 1000; // if you need a higher tabindex, update this number | |
if( $form ) | |
add_filter( ‘gform_tabindex_’ . $form[‘id’], ‘gform_tabindexer’ ); | |
return GFCommon::$tab_index >= $starting_index ? GFCommon::$tab_index : $starting_index; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Rename Uploaded Files | |
* | |
* Rename uploaded files for Gravity Forms. You can create a static naming template or using merge tags to base names on user input. | |
* | |
* Features: | |
* + supports single and multi-file upload fields | |
* + flexible naming template with support for static and dynamic values via GF merge tags | |
* |