ap_user_can_read_answer( integer|object $post = null, boolean|integer $user_id = false )
Description #
Check if a user can read answer.
Parameters #
- $postinteger | object (Optional) Answer ID. Default value: null
- $user_idboolean | integer (Optional) User ID. Default value: false
Source #
File: includes/class/roles-cap.php
function ap_user_can_read_answer( $post = null, $user_id = false ) { return ap_user_can_read_post( $post, $user_id, 'answer' ); }
Expand full source code Collapse full source code View on GitHub: includes/class/roles-cap.php:1298
Add your comment