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
| // 1. Remove the version number from the site's <head> (Meta Generator) | |
| remove_action( 'wp_head', 'wp_generator' ); | |
| // 2. Remove the version number from RSS feeds | |
| add_filter( 'the_generator', '__return_empty_string' ); | |
| /** | |
| * Replace all script and style version numbers with a Year-Month string | |
| */ | |
| function replace_version_with_month( $src ) { |
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
| UPDATE `wp_postmeta` | |
| SET `meta_value` = null | |
| WHERE `meta_key` LIKE '_job_expires' | |
| AND `post_id` IN ( SELECT `post_id` FROM `wp_postmeta` WHERE `meta_key` LIKE '_case27_listing_type' AND `meta_value` LIKE 'places' ) | |
| AND `post_id` IN ( SELECT `post_id` FROM `wp_postmeta` WHERE `meta_key` LIKE '_featured' AND `meta_value` = '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
| # Security Headers | |
| <IfModule mod_headers.c> | |
| Header set X-XSS-Protection "1; mode=block" | |
| Header set X-Frame-Options "SAMEORIGIN" | |
| Header set X-Content-Type-Options "nosniff" | |
| Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains" | |
| Header set Referrer-Policy "same-origin" | |
| Header set Feature-Policy "geolocation 'self'; vibrate 'none'" | |
| </IfModule> |
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
| .tribe-events .tribe-events-calendar-list__event-date-tag-datetime{ | |
| padding-top: 0; | |
| } | |
| .tribe-events-calendar-list__event-date-tag-daynum{ | |
| border-radius: 0 0 4px 4px; | |
| border: 2px solid var(--global-palette5) !important; | |
| display: block; | |
| text-align: center; | |
| font-size: 2rem !important; | |
| text-decoration: none; |
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 | |
| // Check for pluggable function | |
| if ( function_exists( 'is_user_logged_in' ) ) { | |
| if ( ! is_user_logged_in() ) { | |
| add_filter( | |
| 'rest_endpoints', | |
| function ( $endpoints ) { | |
| if ( isset( $endpoints['/wp/v2/users'] ) ) { | |
| unset( $endpoints['/wp/v2/users'] ); | |
| } |
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
| wp search-replace 'old.domain.com' 'new.domain.com' --precise --all-tables --skip-columns=guid,user_email --report-changed-only --dry-run |
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
| # Security Headers | |
| <IfModule mod_headers.c> | |
| Header set X-XSS-Protection "1; mode=block" | |
| Header set X-Frame-Options "SAMEORIGIN" | |
| Header set X-Content-Type-Options "nosniff" | |
| Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains" | |
| Header set Content-Security-Policy "default-src 'self'" | |
| Header set Referrer-Policy "same-origin" | |
| Header set Feature-Policy "geolocation 'self'; vibrate 'none'" | |
| </IfModule> |
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
| .mrk-no-margin{ | |
| --global-md-spacing: 0.5rem; | |
| } |
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 screen and (min-width: 1280px) { | |
| .tribe-events.alignwide { | |
| max-width: var(--global-content-width) !important; | |
| margin-left: calc( 50% - ( var(--global-content-width) / 2 )) !important; | |
| margin-right: calc( 50% - ( var(--global-content-width)/ 2 )) !important; | |
| padding: 0 var(--global-content-edge-padding) !important; | |
| } | |
| } | |
| @media screen and (max-width: 1279px) { | |
| .tribe-events-view.alignwide { |
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
| DELETE FROM `wp_actionscheduler_actions` WHERE `status` = 'complete' | |
| DELETE FROM `wp_actionscheduler_logs`; |
NewerOlder