Created
November 5, 2019 14:18
-
-
Save colorqualia/93a55696d3a68a0b1d1a120780957897 to your computer and use it in GitHub Desktop.
WordPress Authorページの保護
This file contains hidden or 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
| function author_page_redirect() { | |
| if(is_author()) { | |
| wp_redirect(home_url()); | |
| exit; | |
| } | |
| } | |
| add_action('template_redirect','author_page_redirect'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment