Skip to main content
7 events
when toggle format what by license comment
May 13, 2015 at 14:26 comment added timholz @NickYoung – thanks.Your help is much appreciated.
May 12, 2015 at 22:19 comment added Nick Young @timholz no problem. I wasn't sure if it would be the right solution. I wanted to get the information about changing shortcode attributes out there and then hopefully get you started in the right direction. Glad you were able to get it working!
May 12, 2015 at 16:32 comment added timholz @NickYoung – i tested your proposal. Sorry, it doesn't work. But i figured out a another solution. It is of course not very elegant, but i can bring the whole public function from class-wc-shortcodes.php into my functions.php. Then i can alter the values. But it's a crude solution. Thanks for your help.
May 12, 2015 at 5:47 comment added Nick Young @PieterGoosen Yup 100% agreed. I don't use them in my code and I should have just kept them out. I was trying to keep it close to what many plugins will look like for example purposes. I have removed them though to keep the example code in compliance with WP standard coding practices. Thanks for you input.
May 12, 2015 at 5:45 history edited Nick Young CC BY-SA 3.0
deleted 22 characters in body
May 12, 2015 at 5:44 comment added Pieter Goosen Please don't use extract() in shortcodes, or any other functions. It was completely removed from core for very specific reasons and the codex was also updated accordingly.
May 12, 2015 at 5:33 history answered Nick Young CC BY-SA 3.0