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 | |
| // update the number '1' to the ID number on your form | |
| // https://endurtech.com/create-read-only-field-in-gravityforms/ | |
| add_filter( 'gform_pre_render_1', 'add_readonly_script' ); | |
| function add_readonly_script( $form ) | |
| { | |
| ?><script type="text/javascript">jQuery(document).ready(function() { jQuery("li.gf_readonly input").attr("readonly","readonly"); });</script><?php | |
| return $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 | |
| // update the number '1' to the ID number on your form | |
| // https://endurtech.com/create-read-only-field-in-gravityforms/ | |
| add_filter( 'gform_pre_render_1', 'add_readonly_script' ); | |
| function add_readonly_script( $form ) | |
| { | |
| ?><script type="text/javascript">jQuery(document).ready(function() { jQuery("li.gf_readonly textarea").attr("readonly","readonly"); });</script><?php | |
| return $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 | |
| // Disable WordPress Administration email verification prompt | |
| add_filter( 'admin_email_check_interval', '__return_false' ); | |
| ?> |
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 | |
| /** | |
| * This file holds various helper functions that are needed by the frameworks FRONTEND | |
| * | |
| * @author Christian "Kriesi" Budschedl | |
| * @copyright Copyright (c) Christian Budschedl | |
| * @link http://kriesi.at | |
| * @link http://aviathemes.com | |
| * @since Version 1.0 | |
| * @package AviaFramework |
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 | |
| /* | |
| ** GravityForms Disable File Extension Renaming Security Feature | |
| ** Simply add your extensions into the allowed_extensions array. | |
| ** Example: $allowed_extensions = array( 'html', 'htm' ); //for all html and htm extensions | |
| ** Special thanks to Karl Potter, Gravity Forms Support Specialist | |
| ** https://endurtech.com/gravity-forms-renaming-uploaded-files-breaking-links/ | |
| */ | |
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 | |
| /* | |
| ** Disables the user email when a user changes their email address | |
| ** Simply insert into your theme functions.php | |
| ** https://endurtech.com/disable-wordpress-user-notification-email-when-user-email-changed/ | |
| */ | |
| function xuser_email_upon_email_change() | |
| { |
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 | |
| /* | |
| ** Disables the user email when a user resets their password. | |
| ** Simply insert into your theme functions.php | |
| ** https://endurtech.com/disable-wordpress-user-notification-email-when-user-password-changed/ | |
| */ | |
| add_filter( 'send_password_change_email', '__return_false' ); |
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 | |
| /* | |
| ** Disables the admin email when a user resets their password. | |
| ** Must be in plugin, won't work in theme functions.php, because pluggable.php called 1st. | |
| ** https://endurtech.com/disable-wordpress-admin-notification-email-when-user-password-changed/ | |
| */ | |
| if ( ! function_exists( 'wp_password_change_notification' ) ) | |
| { | |
| function wp_password_change_notification( $user ) |
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 Forms Custom User Registration Activation Page | |
| * https://endurtech.com/gravity-forms-custom-user-registration-activation-page/ | |
| */ | |
| add_action( 'wp', 'custom_activation_page' ); | |
| function custom_activation_page() | |
| { | |
| // Set path to activation page. Set to parent/child theme root. |
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 | |
| /* | |
| ** Debug Pending WordPress Plugin Updates | |
| ** | |
| ** Quick debugging method to output all pending plugin/theme updates for admin level user. | |
| ** To use, visit yourwebsite.com/wp-admin/?debug_updates replacing YourWebsite.com of course. | |
| ** https://endurtech.com/wordpress-shows-a-pending-plugin-update/ | |
| ** | |
| ** Special thanks to Kevin Leary |