如果使用默认优先级以外的优先级注册了钩子 10,那么您还必须在调用中指定优先级 remove_action(). if a hook was registered using a priority other than the default of 10, then you must also specify the priority in the call to remove_action().所以我认为您可以先使用以下内容删除So I think you can first remove using followingremove_action('thematic_header', 'thematic_brandingopen', 1);remove_action('thematic_header', 'thematic_access', 9);,然后使用不同的priority add_action('thematic_header', 'thematic_access', 1);add_action('thematic_header', 'thematic_brandingopen', 2); 这篇关于如何在Wordpress中更改操作优先级?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-23 19:14