Hide Backend, how to uses Custom action
-
Hi,
Custom Action:
WordPress uses the “action” variable to handle many login and logout functions. By default this plugin can handle the normal ones but some plugins and themes may utilize a custom action (such as logging out of a private post). If you need a custom action please enter it here.It’s sound perfect but doesn’t work for me…
add_action('wp_logout','go_home'); function go_home(){ wp_redirect( home_url() ); exit(); }
This works for me but when I enable the hide backend feature, go_home doesn’t work.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Hide Backend, how to uses Custom action’ is closed to new replies.