PHP Класс SimpleCommentsLogger

Наследование: extends SimpleLogger
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$slug

Открытые методы

Метод Описание
__construct ( $sh )
adminCSS ( )
getInfo ( ) : array Get array with information about this logger
getLogRowDetailsOutput ( $row ) Get output for detailed log section
getLogRowPlainTextOutput ( $row ) Modify plain output to inlcude link to post and link to comment
get_context_for_comment ( integer $comment_ID ) : mixed Get comments context
loaded ( )
maybe_modify_log_query_sql_where ( string $where ) Modify sql query to exclude comments of type spam
on_comment_post ( $comment_ID, $comment_approved ) Fires immediately after a comment is inserted into the database.
on_delete_comment ( $comment_ID )
on_edit_comment ( $comment_ID )
on_untrashed_comment ( $comment_ID )
on_wp_set_comment_status ( $comment_ID, string | boolean $comment_status ) Fires after a comment status has been updated in the database.

Описание методов

__construct() публичный Метод

public __construct ( $sh )

adminCSS() публичный Метод

public adminCSS ( )

getInfo() публичный Метод

Get array with information about this logger
public getInfo ( ) : array
Результат array

getLogRowDetailsOutput() публичный Метод

Get output for detailed log section
public getLogRowDetailsOutput ( $row )

getLogRowPlainTextOutput() публичный Метод

Modify plain output to inlcude link to post and link to comment
public getLogRowPlainTextOutput ( $row )

get_context_for_comment() публичный Метод

Get comments context
public get_context_for_comment ( integer $comment_ID ) : mixed
$comment_ID integer
Результат mixed array with context if comment found, false if comment not found

loaded() публичный Метод

public loaded ( )

maybe_modify_log_query_sql_where() публичный Метод

Modify sql query to exclude comments of type spam
public maybe_modify_log_query_sql_where ( string $where )
$where string sql query where

on_comment_post() публичный Метод

Fires immediately after a comment is inserted into the database.
public on_comment_post ( $comment_ID, $comment_approved )

on_delete_comment() публичный Метод

public on_delete_comment ( $comment_ID )

on_edit_comment() публичный Метод

public on_edit_comment ( $comment_ID )

on_untrashed_comment() публичный Метод

public on_untrashed_comment ( $comment_ID )

on_wp_set_comment_status() публичный Метод

The hook also fires immediately before comment status transition hooks are fired.
public on_wp_set_comment_status ( $comment_ID, string | boolean $comment_status )
$comment_status string | boolean The comment status. Possible values include 'hold', 'approve', 'spam', 'trash', or false. do_action( 'wp_set_comment_status', $comment_id, $comment_status );

Описание свойств

$slug публичное свойство

public $slug