Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* show my tickets content on My Account dashboard */
- add_action( 'woocommerce_account_content', 'wpgenie_myaccount_replace_dashboard_content', 1 );
- function wpgenie_myaccount_replace_dashboard_content() {
- // remove_action( 'woocommerce_account_content', 'woocommerce_account_content', 10 );
- add_action( 'woocommerce_account_content', 'wpgenie_account_content' );
- }
- function wpgenie_account_content() {
- global $wp, $wc_lottery_pn;
- if ( empty( $query_vars = $wp->query_vars ) || ( ! empty( $query_vars ) && ! empty( $query_vars['pagename'] ) ) ) {
- $wc_lottery_pn->plugin_public->woocommerce_lottery_my_tickets_past_endpoint_content();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement