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
| /* Place in functions.php - Notification name must match */ | |
| add_filter('gform_notification', 'change_notification_format', 10, 3); | |
| function change_notification_format($notification, $form, $entry) | |
| { | |
| GFCommon::log_debug('gform_notification: change_notification_format() running.'); | |
| // Do the thing only for a notification with the name Text Notification | |
| if ($notification['name'] == 'Admin Notification') { | |
| GFCommon::log_debug('gform_notification: format changed to text.'); | |
| // Change notification format to text from the default html |
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
| function wsv_registration_page_redirect() | |
| { | |
| global $pagenow; | |
| if (strtolower($pagenow) == 'wp-login.php' && strtolower($_GET['action']) == 'register') { | |
| wp_redirect(home_url('/registration')); | |
| } | |
| } | |
| add_filter('init', 'wsv_registration_page_redirect'); |
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
| /* https://wordpress.org/plugins/public-post-preview/ */ | |
| add_filter('ppp_nonce_life', 'my_nonce_life'); | |
| function my_nonce_life() | |
| { | |
| return 60 * 60 * 24 * 14; // 14 days | |
| } |
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
| /* https://wordpress.org/plugins/user-registration/ */ | |
| function ur_validate_user_email( $single_form_field, $data, $filter_hook, $form_id ) { | |
| $value = isset( $data->value ) ? $data->value : ''; | |
| $blacklist = array( 'gmail.com', 'hotmail.com', 'outlook.com', 'aol.com', 'mail.com', 'yahoo.com', 'icloud.com' ); | |
| $parts = explode( '@', $value ); | |
| if( in_array( $parts[1], $blacklist ) ) { |
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
| /* https://wordpress.org/plugins/user-registration/ */ | |
| function ur_validate_user_email( $single_form_field, $data, $filter_hook, $form_id ) { | |
| $value = isset( $data->value ) ? $data->value : ''; | |
| $whitelist = array( 'domain1.com', 'domain2.com', 'domain3.com' ); | |
| $parts = explode( '@', $value ); | |
| if( ! in_array( $parts[1], $whitelist ) ) { |
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
| /* https://wordpress.org/plugins/matchheight/ */ | |
| Columns: .wsv-match-height .fl-col-content | |
| PowerPack Info Box: .wsv-match-height .pp-infobox | |
| Ultimate Beaver Posts: .wsv-match-height .uabb-blog-posts | |
| Posts Grid: .wsv-match-height .fl-post-grid-post |
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
| # ---------------------------------------------------- | |
| # | HTACCESS for WordPress on NameHero | | |
| # | Version: 09/27/24 WWW | | |
| # ---------------------------------------------------- | |
| # BEGIN Force SSL | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on [OR] | |
| RewriteCond %{HTTP_HOST} !^www\. |
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
| /* Load on WordPress editor page */ | |
| <script type="text/javascript"> | |
| <!--//--><![CDATA[//><!-- | |
| var images = new Array() | |
| function preload() { | |
| for (i = 0; i < preload.arguments.length; i++) { | |
| images[i] = new Image() | |
| images[i].src = preload.arguments[i] | |
| } | |
| } |
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
| /* https://wordpress.org/plugins/download-manager/ */ | |
| [wpdm_category id="one-page-plans" cols="1" toolbar=0 item_per_page=5 template="link-template-wsv.php" order_by="title" order="desc" paging="0"] | |
| /* Put in /theme-directory/download-manager/link-templates/link-template-wsv.php */ | |
| <!-- WPDM Link Template: Card --> | |
| <div style="padding-bottom: 10px;"> | |
| <strong>[title]</strong><br /> | |
| <a href="[download_url]">Download</a> |