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 | |
/* | |
* In CheckoutWC's Delivery method, hide the Shipping option completely when at least | |
* one product in the cart is assigned to a specific category. | |
* | |
* @author Obi Juan <hola@obijuan.dev> | |
* @link https://obijuan.dev | |
*/ | |
/* |
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
/* | |
* CSS Improvements for The Mass Apothecary. | |
* | |
* Improves the look and feel of the purchase options (Subscription + One Time payment) | |
* on the single product pages. | |
* | |
* @author Obi Juan <hola@obijuan.dev> | |
* @authorURI https://obijuan.dev/ | |
* @license GPL v2 or later. | |
* |
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 | |
/* | |
* Snippet: 'Filter' the Dimensions label under the Additional Information tab on the Single Product page in WooCommerce. | |
* Author: Obi Juan. | |
* Author URI: https://obijuan.dev. | |
* License: GPL v2 or later. | |
*/ | |
add_filter( 'woocommerce_display_product_attributes', 'obi_woocommerce_custom_dimensions_label', 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
<?php | |
/* | |
* Compatible with CheckoutWC Lite and CheckoutWC premium version. | |
* | |
* Snippet: Add a custom icon to any shipping method one by one in WooCommerce. | |
* Full Explanation: Coming soon. | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. |
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 | |
/* | |
* Snippet: Display the discounted amount per product on the Order Details in WooCommerce. | |
* Full Explanation: https://obijuan.dev/display-the-discounted-amount-per-product-on-the-order-details-in-woocommerce/. | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. | |
*/ |
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 | |
/* | |
* Snippet: Send an email message to the billing email address after the user purchases a specific product and uses a specific coupon code. | |
* Full Explanation: Coming soon. | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. | |
*/ |
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 | |
/* | |
* Snippet: Auto-enroll users in a Group or Course based on their email domain in LearnDash LMS. | |
* Full Explanation: https://obijuan.dev/auto-enroll-users-in-a-group-or-course-based-on-their-email-domain-in-learndash-lms/. | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. | |
*/ |
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 | |
/* | |
* Snippet: Enable LearnDash Focus Mode conditionally on a single specific step in a course, either a lesson, topic, quiz, etc. | |
* Full Explanation: https://obijuan.dev/enable-learndash-focus-mode-conditionally-on-a-course-by-course-basis/ | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. | |
*/ |
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 | |
/* | |
* Snippet: Enable LearnDash Focus Mode conditionally on a course-by-course basis. | |
* Full Explanation: https://obijuan.dev/enable-learndash-focus-mode-conditionally-on-a-course-by-course-basis/ | |
* Author: Obi Juan | |
* Author URI: https://obijuan.dev | |
* License: GPL V2 or later. | |
*/ | |
add_filter('pre_option_learndash_settings_theme_ld30', 'virtually_enable_focus_mode_request_uri'); |
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 | |
/* | |
* Snippet to replace the message "Your cart is empty" on the Side Cart in CheckoutWC. | |
* Make sure to exclude the <?php opening tag above to avoid errors. | |
* The code should go in CheckoutWC > Advanced > Scripts > PHP Snippets on your WordPress admin. | |
*/ | |
add_filter('cfw_empty_side_cart_heading', 'custom_message'); // Replaces the "Your cart is empty" message. | |
function customMessage(){ |
NewerOlder