Is it right way to create shortcode?

The codex explain, I think, very well the creation of shortcodes http://codex.wordpress.org/Shortcode_API A very basic shortcode function foobar_func( $atts ){ return “foo and bar”; } add_shortcode( ‘foobar’, ‘foobar_func’ ); To use it, you just need to [foobar] The first parameter on add_shortcodeis the name of the shortcode function bartag_func( $atts ) { extract( shortcode_atts( array( … Read more

Change text “My Basket” in woocommerce artificer theme

Technically, woocommerce_cart_link() is added to the site just before the menu by the artificer_header_cart_link() function, which is pluggable, meaning you could change that function to call a function that duplicates woocommere_cart_link() but with the text changed. However, I think the easiest thing to do is to tap into the gettext filter which kicks in for … Read more