How to get a post status description in Edit Flow
-
How can I access an Edit Flow post status description? After some trial and error and looking at custom-status.php, I gather that it is not saved as a standard term description. Thus, this didn’t work:
$status_slug = get_post_status(); $status_object = get_term_by( 'slug', $status_slug, 'post_status' ); $status_id = $status_object->term_id; $status_description = term_description( (int) $term_id, 'post_status' ); echo $status_description;
How would I properly do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get a post status description in Edit Flow’ is closed to new replies.