Assuming there is some function or variable that allows the shortcode access to its name, and for sake here I will term that $scName
, is something like this possible:
function test_return_shortcode_name( $atts ) {
return $scName;
}
add_shortcode( 'myName', 'test_return_shortcode_name' );
And so for this basic example, this shortcode:
[myName]
Which would return the actual name as text
myName
Does such functionality exist to access the designated name from within the function associated to it?