The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| <?php | |
| add_action( 'edit_form_after_title', 'posts_page_edit_form' ); | |
| function posts_page_edit_form( $post ) { | |
| $posts_page = get_option( 'page_for_posts' ); | |
| if ( $posts_page === $post->ID ) { | |
| // Running this hook seems to remove the page for posts notice, it's a good idea to keep it |