Filter hook 'pre_do_shortcode_tag'
in WP Core File wp-includes/shortcodes.php at line 427
Description
Filters whether to call a shortcode callback. Returning a non-false value from filter will short-circuit the shortcode generation process, returning that value instead.
Occurrences
Filename |
Line Number |
wp-includes/shortcodes.php |
427 |
Parameters
Type |
Name |
Description |
false|string |
$output |
Short-circuit return value. Either false or the value to replace the shortcode with. |
string |
$tag |
Shortcode name. |
array |
$attr |
Shortcode attributes array, can be empty if the original arguments string cannot be parsed. |
array |
$m |
Regular expression match array. |
PHP Doc
/**
* Filters whether to call a shortcode callback.
*
* Returning a non-false value from filter will short-circuit the
* shortcode generation process, returning that value instead.
*
* @since 4.7.0
* @since 6.5.0 The `$attr` parameter is always an array.
*
* @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with.
* @param string $tag Shortcode name.
* @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed.
* @param array $m Regular expression match array.
*/