ap_get_last_active( mixed $post_id = null )
Description #
Get last active time in human readable format.
Parameters #
- $post_idmixed (Optional) Post ID/Object. Default value: null
Source #
File: includes/qaquery.php
function ap_get_last_active( $post_id = null ) { $p = ap_get_post( $post_id ); if ( $p ) { $date = ! empty( $p->last_updated ) ? $p->last_updated : $p->post_modified_gmt; return ap_human_time( get_gmt_from_date( $date ), false ); } return __( 'Invalid post', 'anspress-question-answer' ); }
Expand full source code Collapse full source code View on GitHub: includes/qaquery.php:519
Add your comment