This file contains 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" | |
</IfModule> |
This file contains 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 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 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 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 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 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 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 the emoji's | |
*/ | |
function disable_emojis() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); |
This file contains 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
add_action('woocommerce_product_meta_start',function(){ | |
global $product; | |
echo wc_display_product_attributes( $product ); | |
}); |
This file contains 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