if (!is_admin())
remove_action('fep_menu_button', array(fep_menu_class::init(), 'settings'));
Remember to use is_admin() when using remove action. All Front End PM files are only included when need. Only included in front end which files needed in front end and only included in back end which one needed in back end. So if you don't use is_admin() it will give you fatal error.
No comments:
Post a Comment