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
| add_filter( 'woocommerce_cross_sells_total', 'bbloomer_change_cross_sells_product_no' ); | |
| function bbloomer_change_cross_sells_product_no( $columns ) { | |
| return 2; | |
| } | |
| /** https://www.businessbloomer.com/woocommerce-move-change-number-cross-sells-cart-page/ **/ |
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
| add_filter( 'woocommerce_cart_item_thumbnail', '__return_false' ); | |
| /** https://www.skyverge.com/blog/remove-woocommerce-product-images-from-the-cart/ **/ |
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
| add_filter( 'woocommerce_cart_item_permalink', '__return_null' ); | |
| /** https://www.businessbloomer.com/woocommerce-remove-cart-product-link-cart-page/ **/ |
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
| add_filter( 'woocommerce_gateway_icon', 'wpglorify_remove_what_is_paypal', 10, 2 ); | |
| function wpglorify_remove_what_is_paypal( $icon_html, $gateway_id ) { | |
| if( 'paypal' == $gateway_id ) { | |
| $icon_html = '<img src="/wp-content/plugins/woocommerce/includes/gateways/paypal/assets/images/paypal.png" alt="PayPal Acceptance Mark">'; | |
| } | |
| return $icon_html; | |
| } | |
| /** https://wpglorify.com/woocommerce-remove-what-is-paypal/ **/ |
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
| add_filter( 'plugins_auto_update_enabled', '__return_false' ); | |
| /** https://woorkup.com/wordpress-disable-automatic-updates/ **/ |
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
| add_filter( 'themes_auto_update_enabled', '__return_false' ); | |
| /** https://woorkup.com/wordpress-disable-automatic-updates/ **/ |
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
| add_filter( 'jetpack_just_in_time_msgs', '__return_false' ); | |
| /** https://businessbloomer.com/woocommerce-remove-jetpack-ads-wp-dashboard/ **/ |
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
| // rename the "Have a Coupon?" message on the checkout page | |
| function woocommerce_rename_coupon_message_on_checkout() { | |
| return 'Got a coupon? Score!' . ' <a href="#" class="showcoupon">' . __( 'Redeem it here.', 'woocommerce' ) . '</a>'; | |
| } | |
| add_filter( 'woocommerce_checkout_coupon_message', 'woocommerce_rename_coupon_message_on_checkout' ); | |
| // rename the coupon field on the checkout page | |
| function woocommerce_rename_coupon_field_on_checkout( $translated_text, $text, $text_domain ) { | |
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
| add_filter( 'default_checkout_country', 'change_default_checkout_country' ); | |
| add_filter( 'default_checkout_state', 'change_default_checkout_state' ); | |
| function change_default_checkout_country() { | |
| return 'US'; // country code | |
| } | |
| function change_default_checkout_state() { | |
| return 'CA'; // state code | |
| } |
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
| add_action( 'admin_menu', 'remove_menus', 999 ); | |
| function remove_menus() { | |
| remove_menu_page( 'edit-comments.php' ); | |
| } |