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 ); |
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
function add_security_headers($headers) { | |
// Add X-XSS-Protection header | |
$headers['X-XSS-Protection'] = '1; mode=block'; | |
// Add X-Content-Type-Options header | |
$headers['X-Content-Type-Options'] = 'nosniff'; | |
// Add X-Frame-Options header | |
$headers['X-Frame-Options'] = 'SAMEORIGIN'; |
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( 'init', 'custom_wc_maybe_reduce_stock_levels', 10 ); | |
function custom_wc_maybe_reduce_stock_levels(){ | |
// remove_action( 'woocommerce_order_status_completed', 'wc_maybe_reduce_stock_levels' ); | |
remove_action( 'woocommerce_payment_complete', 'wc_maybe_reduce_stock_levels' ); | |
remove_action( 'woocommerce_order_status_processing', 'wc_maybe_reduce_stock_levels' ); | |
remove_action( 'woocommerce_order_status_on-hold', 'wc_maybe_reduce_stock_levels' ); | |
add_action( 'woocommerce_payment_complete', 'wc_maybe_increase_stock_levels' ); | |
add_action( 'woocommerce_order_status_processing', 'wc_maybe_increase_stock_levels' ); |
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 itsec site-scanner scan |
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
function extend_auth_cookie_expiration( $expiration, $user_id, $remember ) { | |
// Set the desired cookie expiration time (48 hours in this example) | |
$cookie_expire = 2 * DAY_IN_SECONDS; | |
// Return the new expiration time | |
return $cookie_expire; | |
} | |
add_filter( 'auth_cookie_expiration', 'extend_auth_cookie_expiration', 10, 3 ); |