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 | |
/** | |
* limit_submissions_by_ip() | |
* filters a Gravity Form to prevent submissions from an already submitted IP, good for spam prevention | |
* change the ID to match your form (ex: gform_pre_render_6) | |
* @param $form (array) the form | |
* @return $form (array) the filtered form | |
* @author Joachim Kudish <[email protected]> | |
* @link http://jkudish.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
<?php | |
/** | |
* Display how many spots are left in the choice label when using the GP Limit Choices perk | |
* http://gravitywiz.com/gravity-perks/ | |
*/ | |
add_filter( 'gplc_remove_choices', '__return_false' ); | |
add_filter( 'gplc_pre_render_choice', 'my_add_how_many_left_message', 10, 5 ); |
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 | |
/** | |
* The Events Calendar and related plugins: Add your own location for template file loading. | |
* | |
* Example "Single Event within List View" for Avada theme (which has theme overrides). | |
* Now tries to load in this order: | |
* This plugin: /app/public/wp-content/plugins/my-plugin/tribe-events/list/single-event.php | |
* Theme root so it stays even if switch themes: /app/public/wp-content/themes/tribe-events/list/single-event.php | |
* Child theme with theme overrides: /app/public/wp-content/themes/Avada-Child-Theme/tribe-events/list/single-event.php |