WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 438 | * |
| 439 | * @since 4.7.0 |
| 440 | * @since 6.5.0 The `$attr` parameter is always an array. |
| 441 | * |
| 442 | * @param string $output Shortcode output. |
| 443 | * @param string $tag Shortcode name. |
| 444 | * @param array $attr Shortcode attributes array, can be empty if the original arguments string cannot be parsed. |
| 445 | * @param array $m Regular expression match array. |
| 446 | */ |
| 447 | return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m ); |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * Searches only inside HTML elements for shortcodes and process them. |
| 452 | * |
| 453 | * Any [ or ] characters remaining inside elements will be HTML encoded |
| 454 | * to prevent interference with shortcodes that are outside the elements. |
| 455 | * Assumes $content processed by KSES already. Users with unfiltered_html |
| 456 | * capability may get unexpected output if angle braces are nested in tags. |