Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //redirecionando para a listagem de posts/ pages após a publicação
- add_action('publish_page', 'wpmove_redirect_on_page_publish');
- function wpmove_redirect_on_page_publish($post_ID) {
- header('Location: '.get_home_url().'/wp-admin/edit.php?post_type=page');
- exit();
- }
- add_action('publish_post', 'wpmove_redirect_on_post_publish');
- function wpmove_redirect_on_post_publish($post_ID) {
- header('Location: '.get_home_url().'/wp-admin/edit.php?post_type=post');
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement