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
| # Redirect HTTPS to HTTP | |
| RewriteCond %{HTTP:X-Forwarded-Proto} =https | |
| RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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 Existing Discussion MetaBox | |
| */ | |
| add_action( 'admin_menu', 'remove_discussion_meta_box' ); | |
| function remove_discussion_meta_box() | |
| { | |
| remove_meta_box( 'commentstatusdiv', 'post', 'normal' ); | |
| } |
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 Hide All Backend Tooltips | |
| */ | |
| add_filter( 'gform_tooltips', 'hide_gf_tooltips' ); | |
| function hide_gf_tooltips() | |
| { | |
| return array(); | |
| } |
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
| <style> | |
| a.external[target="_blank"]::after { | |
| content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==); | |
| margin: 0px 3px 0px 5px; | |
| } | |
| </style> |
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
| # Disable access to xmlrpc.php | |
| <Files xmlrpc.php> | |
| order deny,allow | |
| deny from all | |
| </Files> |
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 | |
| //Custom Checkbox "Select All" Label For Specific Form (Replace _FORMID, example _4) | |
| add_filter( 'gform_checkbox_select_all_label_FORMID', 'cform_checkbox_select_all_label', 10, 2 ); | |
| function cform_checkbox_select_all_label( $select_label, $field ) | |
| { | |
| return "MY CUSTOM LABEL"; | |
| } | |
| ?> |
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 | |
| add_filter( 'display_post_states', 'remove_ALB_post_state', 999, 2 ); | |
| function remove_ALB_post_state( $post_states, $post ) | |
| { | |
| if( !has_blocks( $post->ID ) ) | |
| { | |
| unset( $post_states['wp_editor'] ); | |
| } | |
| if( != Avia_Builder()->get_alb_builder_status($post->ID) ) |
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 | |
| /* | |
| ** Plugin Name: WordPress Permissions Fixer | |
| ** Plugin URI: https://endurtech.com/how-to-fix-wordpress-file-and-folder-permissions/ | |
| ** Description: Simple php script sets correct directory and file permissions on WordPress and others. Directories are 755, files are 644, wp-config.php is 444. | |
| ** Author: Manuel Rodrigues | |
| ** Author URI: https://endurtech.com | |
| ** Version: 1.1 | |
| ** Tags: wordpress, php, script, directory, directories, file, files, wp-config.php, chmod, fix | |
| ** License: GPL-2.0+ |
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 Image Upload Resizer. Replace _1 with your Form ID | |
| add_action( "gform_after_submission_1", "gf_resize_images", 10, 2 ); | |
| function gf_resize_images( $entry, $form ) | |
| { | |
| // Replace 2 with field ID of upload field | |
| $url = $entry[2]; | |
| $parsed_url = parse_url( $url ); | |
| $path = $_SERVER['DOCUMENT_ROOT'] . $parsed_url['path']; |
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 |
OlderNewer