过滤包含类成员的内容的最佳方法是什么?例如。
class Foo {
...constructor, etc.
function to_filter() {
$output = \'<div class="wrap">\';
$output .= $this->another_function();
$output .= more html
return apply_filters( \'to_filter_name\', $output );
}
}
然后如何在我的筛选函数中使用$this->另一个\\u函数()?