Front End PM remove action

If you want to remove any action you can use corresponding action. eg. You want to remove settings button from menu of Front End PM paste following code in your theme functions.php file


       

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