ap_update_answer_selected( integer $answer_id, boolean $selected = true )

Description #

Updates selected field of qameta.

Parameters #

  • $answer_id
    integer (Required) Answer ID.
  • $selected
    boolean (Optional) Is selected. Default value: true

Changelog #

VersionDescription
3.1.0Introduced.

Source #

File: includes/qameta.php

function ap_update_answer_selected( $answer_id, $selected = true ) {
	return ap_insert_qameta( $answer_id, array( 'selected' => (bool) $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