ap_question_status( mixed $_post = null )
Description #
Echo post status of a question.
Parameters #
- $_postmixed (Optional) Post ID, Object or null. Default value: null
Source #
File: includes/qaquery.php
function ap_question_status( $_post = null ) { $_post = ap_get_post( $_post ); if ( 'publish' === $_post->post_status ) { return; } $status_obj = get_post_status_object( $_post->post_status ); echo '<span class="ap-post-status ' . esc_attr( $_post->post_status ) . '">' . esc_attr( $status_obj->label ) . '</span>'; }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:428
Add your comment