wpseek.com
A WordPress-centric search engine for devs and theme authors



_filter_block_content_callback › WordPress Function

Since6.2.1
Deprecatedn/a
_filter_block_content_callback ( $matches )
Access:
  • private
Parameters:
  • (array) $matches Array of preg_replace_callback matches.
    Required: Yes
Returns:
  • (string) Replacement string.
Defined at:
Codex:

Callback used for regular expression replacement in filter_block_content().



Source

function _filter_block_content_callback( $matches ) {
	return '<!--' . rtrim( $matches[1], '-' ) . '-->';
}