ap_user_can_read_question( mixed $question_id, boolean|integer $user_id = false )
Description #
Check if a user can read question.
Parameters #
- $question_idmixed (Required) Question ID.
- $user_idboolean | integer (Optional) User ID. Default value: false
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' ); }
Expand full source code Collapse full source code View on GitHub: includes/class/roles-cap.php:1285
Add your comment