This should work, but I don’t think the shortcode is registered by the time this is run. Or there could be another problem entirely.
// Put Booster currency dropdown after cart in header
add_action( 'init' , 'add_currency' , 15 );
function add_currency() {
add_action( 'storefront_header', 'insert_currency', 65 );
}
function insert_currency() {
echo do_shortcode( '[wcj_currency_select_drop_down_list]' );
}
Is this the right approach, and can you see where the problem is?
-
This reply was modified 6 years, 2 months ago by embmus.