Created
May 12, 2022 15:19
-
-
Save malsubrata/a84b8a6eae0f02873d9c7d576f5c7ec1 to your computer and use it in GitHub Desktop.
terawallet-transactions-shortcode
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_shortcode('terawallet-transactions', 'terawallet_transaction_shortcode'); | |
if(!function_exists('terawallet_transaction_shortcode')){ | |
function terawallet_transaction_shortcode(){ | |
wp_enqueue_style('woo-wallet-payment-jquery-ui'); | |
wp_enqueue_style('dashicons'); | |
wp_enqueue_style('select2'); | |
wp_enqueue_style('jquery-datatables-style'); | |
wp_enqueue_style('jquery-datatables-responsive-style'); | |
wp_enqueue_script('jquery-ui-datepicker'); | |
wp_enqueue_script('selectWoo'); | |
wp_enqueue_script('jquery-datatables-script'); | |
wp_enqueue_script('jquery-datatables-responsive-script'); | |
wp_enqueue_script('wc-endpoint-wallet'); | |
ob_start(); | |
woo_wallet()->get_template('wc-endpoint-wallet-transactions.php'); | |
return ob_get_clean(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment