ap_user_can_delete_answer( object|integer $answer, boolean $user_id = false )

Description #

Check if user can delete a answer.

Parameters #

  • $answer
    object | integer (Required) Answer 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_answer( $answer, $user_id = false ) {
	return ap_user_can_delete_post( $answer, $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