ap_is_selected( mixed $_post = null )

Description #

Check if current answer is selected as a best

Parameters #

  • $_post
    mixed (Optional) Post. Default value: null

Changelog #

VersionDescription
2.1Introduced.

Source #

File: includes/qaquery.php

function ap_is_selected( $_post = null ) {
	$_post = ap_get_post( $_post );

	if ( ! $_post ) {
		return false;
	}

	return (bool) $_post->selected;
}

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