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
UPDATE wp_postmeta pm | |
INNER JOIN wp_wc_product_meta_lookup pml | |
ON pm.post_id = pml.product_id | |
SET pm.meta_value = '0', pml.stock_quantity = '0' | |
WHERE pm.meta_key = '_stock'; | |
UPDATE wp_postmeta pm | |
INNER JOIN wp_wc_product_meta_lookup pml | |
ON pm.post_id = pml.product_id | |
SET pm.meta_value = 'outofstock', pml.stock_status = 'outofstock' |
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 FROMwp_actionscheduler_actions WHERE status IN ('failed','canceled') | |
TRUNCATE wp_actionscheduler_logs |
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 (max-width: 768px) { | |
.site-branding .site-title { | |
display: 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
DELETE FROM wp_wc_webhooks WHERE status = 'disabled'; |
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
define( 'WP_SMUSH_ASYNC_LAZY', true ); |
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 wpvulnerability core | |
wp wpvulnerability plugins | |
wp wpvulnerability themes |
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
.form-row.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated { | |
display: 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
add_filter( 'woocommerce_get_script_data', function( $script_data, $handle ) { | |
if ( 'wc-cart-fragments' === $handle ) { | |
if ( is_woocommerce() || is_cart() || is_checkout() ) { | |
return $script_data; | |
} | |
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
https://forums.cpanel.net/threads/cloudlinux-7-and-centos-7-end-of-life-update.701305/ | |
https://docs.cpanel.net/knowledge-base/cpanel-product/cpanel-deprecation-plan/ | |
https://docs.cpanel.net/knowledge-base/third-party/third-party-software-end-of-life-policy/ | |
https://support.cpanel.net/hc/en-us/articles/1500007207341-How-long-will-cPanel-support-my-operating-system- | |
https://support.cpanel.net/hc/en-us/articles/15254497065367-v112-CentOS-7-CloudLinux-6-and-7-and-RHEL-7-deprecation- | |
https://docs.cpanel.net/release-notes/110-release-notes/ | |
https://docs.cpanel.net/release-notes/112-release-notes/ | |
https://wiki.centos.org/About/Product | |
https://endoflife.date/centos |
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
// Remove sale price and use regular price when stock is 0 | |
function remove_sale_price_on_zero_stock( $price, $product ) { | |
// Check if the product is on sale and has stock | |
if ( $product->is_on_sale() && $product->get_stock_quantity() <= 0 ) { | |
$regular_price = $product->get_regular_price(); | |
$price = wc_price( $regular_price ); // Use regular price instead of sale price | |
} | |
return $price; | |
} | |
add_filter( 'woocommerce_product_get_price', 'remove_sale_price_on_zero_stock', 10, 2 ); |