_filter_block_content_callback()
Callback used for regular expression replacement in filter_block_content().
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.
Returns
String. Replacement string.
Usage
_filter_block_content_callback( $matches );
- $matches(array) (required)
- Array of preg_replace_callback matches.
Changelog
| Since 6.2.1 | Introduced. |
_filter_block_content_callback() filter block content callback code WP 6.8.3
function _filter_block_content_callback( $matches ) {
return '<!--' . rtrim( $matches[1], '-' ) . '-->';
}