Recent

Reopen class

Reopen

Reopen class.

When a published post is saved/updated, reopens comments for a configured number of days by writing a Unix timestamp to _acc_reopen_until post meta. The cron closing query in Comments::edit_discussions() respects this window and will not close the post until the window expires.

Namespace: WebberZone\AutoClose\Features
Since: 3.1.0
Source: includes/features/class-reopen.php line 28

Methods

__construct()

Constructor.

Since: 3.1.0
Line: 35

public function __construct(  );

reopen_on_update()

Reopen comments when a published post is saved.

Since: 3.1.0
Line: 47

public function reopen_on_update( $post_id, $post ): void;
TypeNameDescription
int$post_idPost ID.
\WP_Post$postPost object.

Returns: void