wpseek.com
WordPress开发者和主题制作者的搜索引擎



_filter_block_content_callback › WordPress Function

Since6.2.1
已弃用n/a
_filter_block_content_callback ( $matches )
访问:
  • private
参数:
  • (array) $matches Array of preg_replace_callback matches.
    Required: Yes
返回:
  • (string) Replacement string.
定义在:
文档:

Callback used for regular expression replacement in filter_block_content().



源码

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