how to revert add_action('show_admin_bar', '__return_false'); using a child them
-
I am building out a website using a child theme for WirePress. In the parent theme’s functions.php file there is code to disable the admin bar:
add_action(‘show_admin_bar’, ‘__return_false’);
Of course, I am trying to follow the best practices of child theming and not making modifications to the parent but all of the ways I know to reverse this are not working.
I have tried adding remove_action(‘show_admin_bar’, ‘__return_false’); to my functions.php file along with show_admin_bar(true) and remove_filter(‘show_admin_bar’, ‘__return_false’);
None of these seems to disable the action in the parent theme. Any suggestions? I have confirmed commenting the line out of the parent theme re-enables the admin bar so I know preventing the action will solve the problem.
Thanks!
- The topic ‘how to revert add_action('show_admin_bar', '__return_false'); using a child them’ is closed to new replies.