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( 'jet-engine/register-macros', function() { | |
class Custom_Weekday_Macro extends \Jet_Engine_Base_Macros { | |
/** | |
* Macros tag - this macro will look like %custom_weekday% | |
*/ | |
public function macros_tag() { | |
return 'custom_weekday'; | |
} |
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 | |
/** | |
* Shortcode to display WooCommerce Subscription details on the My Account page. | |
* | |
* Usage examples: | |
* [woo_subscription_details] | |
* [woo_subscription_details subscription_id="123"] | |
* | |
* - If no subscription_id is provided, the shortcode automatically fetches the current user's subscriptions. | |
* * If the user has exactly one subscription, its details are shown. |
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
//Some of developers want to get page/posts meta fields in php code and want to run query with it or create shortcode and get jetengine's meta field in it. | |
//There are 2 methods to get post/page meta field created via Jetenigine Plugin. | |
//Jetengine method. | |
//Wordpress default method. | |
//----------------------- | |
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
Here is the list of meta keys which you can use to manually update users information via custom form or jetengine's form/jetformbuilder. | |
Billing information's form fields meta keys | |
billing_last_name | |
billing_company |