我有一个模板文件,该文件有两个get_template_part()
.
ie,get_template_part( \'store\' );
get_template_part( \'header\' );
这两个是在模板页面中使用的,我想在这里删除这两个get_template_part()
从我的插件
如果我从插件加载函数,get_template_part(\'store\')
不得显示。应将其从模板页中删除。
谁能给我一些建议吗。
我有一个模板文件,该文件有两个get_template_part()
.
ie,get_template_part( \'store\' );
get_template_part( \'header\' );
这两个是在模板页面中使用的,我想在这里删除这两个get_template_part()
从我的插件
如果我从插件加载函数,get_template_part(\'store\')
不得显示。应将其从模板页中删除。
谁能给我一些建议吗。
不幸的是,这是不可能的。没有任何筛选器用于筛选加载的模板get_template_part()
你可以用来实现这一点。