ap_selected_answer( object|null|integer $_post = null )

Description #

Return the ID of selected answer from a question.

Parameters #

  • $_post
    object | null | integer (Optional) Post object, ID or null. Default value: null

Source #

File: includes/qaquery.php

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

	if ( ! $_post ) {
		return false;
	}

	return $_post->selected_id;
}

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