ap_comment_delete_locked( integer $comment_id )

Description #

Check if comment delete is locked.

Parameters #

  • $comment_id
    integer (Required) Comment ID.

Changelog #

VersionDescription
3.0.0Introduced.

Source #

File: includes/comments.php

function ap_comment_delete_locked( $comment_id ) {
	$comment       = get_comment( $comment_id );
	$commment_time = mysql2date( 'U', $comment->comment_date_gmt ) + (int) ap_opt( 'disable_delete_after' );
	return time() > $commment_time;
}

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