ap_delete_comment_activity( Comment|integer $comment_id )
Description #
Delete all activities related to a comment.
More detail about activity delete can be found here @see AnsPress\Activity_Helper::delete()
Parameters #
- $comment_idComment | integer (Required) WordPress comment object or comment ID.
Source #
File: includes/activity.php
function ap_delete_comment_activity( $comment_id ) { if ( 'anspress' !== get_comment_type( $comment_id ) ) { return; } // Delete all activities by post id. return ap_activity_object()->delete( array( 'c_id' => $comment_id ) ); }
Expand full source code Collapse full source code View on GitHub: includes/activity.php:84
Add your comment