ap_user_can_delete_question( object|integer $question, boolean $user_id = false )

Description #

Check if user can delete a question.

Parameters #

  • $question
    object | integer (Required) Question ID or object.
  • $user_id
    boolean (Optional) User ID. Default value: false

Changelog #

VersionDescription
2.4.7Introduced.

Source #

File: includes/class/roles-cap.php

function ap_user_can_delete_question( $question, $user_id = false ) {
	return ap_user_can_delete_post( $question, $user_id );
}

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