Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save malsubrata/a84b8a6eae0f02873d9c7d576f5c7ec1 to your computer and use it in GitHub Desktop.
Save malsubrata/a84b8a6eae0f02873d9c7d576f5c7ec1 to your computer and use it in GitHub Desktop.
terawallet-transactions-shortcode
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