1

Here is a screenshot of the admin console pages I find here a description of the page on the title column (marked in RED), I would like to add such notes on pages I create or edit the ones already there. I can't find it on the edit screen or any other related editable part. Can anyone help me?enter image description here

1 Answer 1

0

Welcome! Those areas you have marked with a red border is called Post states.

In order to modify post states you can use display_post_states filter.

The following example adds the post id to states.

function my_custom_display_post_states( $states, $post ) {
    // Add post id.
    $states['my_custom_state'] = $post->ID;

    return $states;
}

add_filter( 'display_post_states', 'my_custom_display_post_states', 10, 2 );```

Please check WordPress documentation for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.