Forked from martijn94/wp-admin-add-posts-state.php
Created
March 26, 2019 21:14
Revisions
-
martijn94 revised this gist
Apr 13, 2016 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,15 @@ <?php //====================================================================== // Add post state to the projects page //====================================================================== add_filter( 'display_post_states', 'ecs_add_post_state', 10, 2 ); function ecs_add_post_state( $post_states, $post ) { if( $post->post_name == 'edit-profile' ) { $post_states[] = 'Profile edit page'; } return $post_states; -
martijn94 revised this gist
Apr 13, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ <?php //====================================================================== // Add post state to the profile edit page //====================================================================== -
martijn94 created this gist
Apr 13, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ //====================================================================== // Add post state to the profile edit page //====================================================================== add_filter( 'display_post_states', 'ecs_add_post_state', 10, 2 ); function ecs_add_post_state( $post_states, $post ) { if( $post->post_name == 'onderzoeken' ) { $post_states[] = 'Onderzoeken Pagina'; } return $post_states; }