ap_get_time( mixed $_post = null, string $format = '' )

Description #

Return post time.

Parameters #

  • $_post
    mixed (Optional) Post ID, Object or null. Default value: null
  • $format
    string (Optional) Date format. Default value: ''

Source #

File: includes/qaquery.php

function ap_get_time( $_post = null, $format = '' ) {
	$_post = ap_get_post( $_post );

	if ( ! $_post ) {
		return;
	}

	return get_post_time( $format, true, $_post->ID, true );
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment