Recent

Comments class

Comments

Comments class.

Namespace: WebberZone\AutoClose\Features
Since: 3.0.0
Source: includes/features/class-comments.php line 18

Methods

__construct()

Constructor.

Since: 3.0.0
Line: 25

public function __construct(  );

process_comments()

Process comments based on settings.

Since: 3.0.0
Line: 34

public function process_comments(  );

edit_discussions()

Function to open/close comments or pingback/trackbacks

Since: 3.0.0
Line: 113

public function edit_discussions( $type = ..., $action = ..., $args = ... ): int|bool;
TypeNameDescription
string$type’comment’ or ‘ping’.
string$action’open’ or ‘close’.
string|array$argsOptional arguments.

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.

open_comments()

Open comments.

Since: 3.0.0
Line: 201

public function open_comments( $args = ... ): int|bool;
TypeNameDescription
array$argsArray of arguments.

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.

close_comments()

Close comments.

Since: 3.0.0
Line: 213

public function close_comments( $args = ... ): int|bool;
TypeNameDescription
array$argsArray of arguments.

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.

open_pingbacks()

Open pingbacks/trackbacks.

Since: 3.0.0
Line: 225

public function open_pingbacks( $args = ... ): int|bool;
TypeNameDescription
array$argsArray of arguments.

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.

close_pingbacks()

Close pingbacks/trackbacks.

Since: 3.0.0
Line: 237

public function close_pingbacks( $args = ... ): int|bool;
TypeNameDescription
array$argsArray of arguments.

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.

delete_pingbacks()

Delete pingbacks/trackbacks.

Since: 3.0.0
Line: 248

public function delete_pingbacks(  ): int|bool;

Returns: int|bool — Number of rows affected/selected for all other queries. Boolean false on error.