admin管理员组文章数量:1332395
is it possible to modify plugin by removing action and then adding a new with new function?
In plugin I have this:
namespace OCDI;
class ImportActions {
public function register_hooks() {
add_action( 'pt-ocdi/customizer_import_execution', array( $this, 'customizer_import' ), 10, 1 );
}
}
So I tried this:
remove_action( 'pt-ocdi/customizer_import_execution', array( '\OCDI\ImportActions', 'customizer_import' ), 10, 1 );
But it does not work(
customizer_import
function still working so the code in themes functions.php should run after plugins code.
I checked looks plugin loads all the main code in after_setup_theme
action.
Can someone clarify why so?
It is not possible to make small changes to a plugin? Perhaps I can hire someone?
Kind regards
本文标签: functionsModifying a WordPress Plugin
版权声明:本文标题:functions - Modifying a WordPress Plugin 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742282105a2446282.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论