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
<?php | |
/* | |
* Show the Login Form first on the Registration page. | |
*/ | |
add_action( 'wp_footer', function () { | |
// Get the LearnDash registration page ID. | |
$ld_registration_page_id = learndash_registration_page_get_id(); | |
// Exit if user is already logged in or not on the registration 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
<?php | |
/** | |
* Debug LearnDash Quiz Certificates. | |
* | |
* Enter the Quiz ID and User ID into the [debug_learndash_quiz_certificate] shortcode. | |
* If the user has earned the certificate for the quiz, the shortcode will return | |
* the Certificate Download link. | |
* | |
* Clicking the link should open the generated certificate PDF according to the | |
* certificate settings in the quiz. |
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
<?php | |
/* | |
* Turn off Delivery (shipping option) in CheckoutWC's Local Pickup, | |
* if the WooCommerce cart total is less or equal than 25. | |
* | |
* @param bool $disable. Whether to disable Delivery or not. | |
* @return bool. The filtered value. | |
*/ | |
add_filter( 'cfw_local_pickup_disable_shipping_option', function( $disable ) { |
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
<?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 <[email protected]> | |
* @link https://obijuan.dev | |
*/ | |
/* |
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
/* | |
* 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 <[email protected]> | |
* @authorURI https://obijuan.dev/ | |
* @license GPL v2 or later. | |
* |
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
<?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 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
<?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 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
<?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 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
<?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 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
<?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. | |
*/ |
NewerOlder