Just remove the shortcode during the first call.
add_shortcode( 'foo', 'foo_shortcode_handler' );
function foo_shortcode_handler()
{
remove_shortcode( 'foo' );
return 'bar';
}
Just remove the shortcode during the first call.
add_shortcode( 'foo', 'foo_shortcode_handler' );
function foo_shortcode_handler()
{
remove_shortcode( 'foo' );
return 'bar';
}