我希望能像处理\\u内容一样处理\\u摘录,但没有这样的运气。
如何通过插件传递帖子页面的摘录?我尝试过这方面的变化:
add_filter(\'the_excerpt\', \'my_function\');
但是,唉,不行。建议?
EDIT: It looks like my filter call won\'t work when called from within another function, but it DOES work if it\'s at the same level of the function I\'m calling, like so:
add_filter(\'the_excerpt\', \'my_filter\');
function my_filter($content) {
die(\'hello\');
}
知道为什么吗?