Possible Duplicate:
current_shortcode() - detect currently used shortcode
I'm dynamically generating shortcodes with my plugin like this:
foreach ($options['grids'] as $grid) {
add_shortcode($grid['shortcode'], array($this, 'print_shortcode'));
}
But the problem is, in the callback function I need to print different content, based on the shortcode's name.
My question is - how would I get the shortcode's name from within print_shortcode() ?
Thank you!
$options['grids']
contains?