Created
April 15, 2019 15:51
-
-
Save chered/839d196e7b3b14b7a4ff1af2d9da6f12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action("load-post-new.php", 'block_post'); | |
function block_post() | |
{ | |
if($_GET["post_type"] == "physician" || "posts" ) | |
wp_redirect("edit.php?post_type=physician"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment