Use the post status "label" on the user dashboard

Support MB Frontend Submission Use the post status "label" on the user dashboard

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41796
    Scott BrimScott Brim
    Participant

    Small request: In both the user dashboard enabled by Frontend Submission, and in Favorite Posts, the post status slug is used for status. I suggest using the post status label instead. For example, this would replace "publish" with "Published". I do this in the email I send to users for post status changes.

    		$status = get_post_status( $postid );
    		$status_obj = get_post_status_object( $status );
    		if ($status_obj) {
    			$status = $status_obj->label;
    		}
    

    Thank you.

    #41803
    PeterPeter
    Moderator

    Hello Scott,

    Thanks for your feedback.

    I see in the frontend dashboard table, the status text is capitalized as the label. In the favorite dashboard table, you can simply use this CSS code.

    .mbfp-posts tbody tr td:nth-child(3) {
        text-transform: capitalize;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.