Created
March 24, 2021 15:47
-
-
Save peterjohnhunt/1ba6ce07c20ce415f9c634052f5cb45f to your computer and use it in GitHub Desktop.
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 custom_display_post_states( $states, $post ) { | |
| $note = get_post_meta($post->ID, 'MY_META_FIELD_HERE', true); | |
| if ( $note && !isset($states['note']) ) { | |
| $states['note'] = $note; | |
| } | |
| return $states; | |
| } | |
| add_filter( 'display_post_states', 'custom_display_post_states', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment