ap_user_can_read_answer( integer|object $post = null, boolean|integer $user_id = false )

Description #

Check if a user can read answer.

Parameters #

  • $post
    integer | object (Optional) Answer ID. Default value: null
  • $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_answer( $post = null, $user_id = false ) {
	return ap_user_can_read_post( $post, $user_id, 'answer' );
}

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