PHP 클래스 SimpleCommentsLogger

상속: extends SimpleLogger
파일 보기 프로젝트 열기: bonny/wordpress-simple-history

공개 프로퍼티들

프로퍼티 타입 설명
$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