ap_user_can_read_question( mixed $question_id, boolean|integer $user_id = false )

Description #

Check if a user can read question.

Parameters #

  • $question_id
    mixed (Required) Question ID.
  • $user_id
    boolean | integer (Optional) User ID. Default value: false

Changelog #

VersionDescription
2.4.6Introduced.

Source #

File: includes/class/roles-cap.php

function ap_user_can_read_question( $question_id, $user_id = false ) {
	return ap_user_can_read_post( $question_id, $user_id, 'question' );
}

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