_wp_kses_split_callback()
Callback for wp_kses_split().
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Return
String
.
Usage
_wp_kses_split_callback( $matches );
- $matches(array) (required)
- preg_replace regexp matches
Notes
- Global. Array[]|String. $pass_allowed_html An array of allowed HTML elements and attributes, or a context name such as 'post'.
- Global. String[]. $pass_allowed_protocols Array of allowed URL protocols.
Changelog
Since 3.1.0 | Introduced. |
_wp_kses_split_callback() wp kses split callback code WP 6.7.2
function _wp_kses_split_callback( $matches ) { global $pass_allowed_html, $pass_allowed_protocols; return wp_kses_split2( $matches[0], $pass_allowed_html, $pass_allowed_protocols ); }