PHP 클래스 SimpleThemeLogger

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

공개 프로퍼티들

프로퍼티 타입 설명
$slug

공개 메소드들

메소드 설명
getInfo ( ) : array Get array with information about this logger
getLogRowDetailsOutput ( $row )
getLogRowPlainTextOutput ( $row ) Add widget name and sidebar name to output
getSidebarById ( string $sidebar_id ) : sidebar Get a sidebar by id
getWidgetByIdBase ( $widget_id_base ) : wp_widget Get an widget by id's id_base
loaded ( )
on_action_customize_save ( $customize_manager ) * WP_Customize_Manager $this WP_Customize_Manager instance.
on_action_sidebar_admin_setup__detect_widget_add ( ) Widget added
on_action_sidebar_admin_setup__detect_widget_delete ( ) * widget deleted
on_deleted_site_transient_theme_deleted ( $transient = null ) * Fires after a transient is deleted.
on_page_load_custom_background ( )
on_page_load_themes ( ) When a new theme is about to get switched to we save info about the old one
on_switch_theme ( $new_name, $new_theme )
on_upgrader_process_complete_theme_install ( $upgrader_instance = null, $arr_data = null )
on_upgrader_process_complete_theme_update ( $upgrader_instance = null, $arr_data = null )
on_widget_update_callback ( $instance, $new_instance, $old_instance, $widget_instance ) A widget is changed, i.e. new values are saved

메소드 상세

getInfo() 공개 메소드

Get array with information about this logger
public getInfo ( ) : array
리턴 array

getLogRowDetailsOutput() 공개 메소드

public getLogRowDetailsOutput ( $row )

getLogRowPlainTextOutput() 공개 메소드

Add widget name and sidebar name to output
public getLogRowPlainTextOutput ( $row )

getSidebarById() 공개 메소드

Get a sidebar by id
public getSidebarById ( string $sidebar_id ) : sidebar
$sidebar_id string
리턴 sidebar info or false on failure

getWidgetByIdBase() 공개 메소드

Get an widget by id's id_base
public getWidgetByIdBase ( $widget_id_base ) : wp_widget
리턴 wp_widget object or false on failure

loaded() 공개 메소드

public loaded ( )

on_action_customize_save() 공개 메소드

* WP_Customize_Manager $this WP_Customize_Manager instance.
public on_action_customize_save ( $customize_manager )

on_action_sidebar_admin_setup__detect_widget_add() 공개 메소드

Widget added

on_action_sidebar_admin_setup__detect_widget_delete() 공개 메소드

* widget deleted

on_deleted_site_transient_theme_deleted() 공개 메소드

WP function delete_theme() does not have any actions or filters we can use to detect a theme deletion, but the last thing that is done in delete_theme() is that the "update_themes" transient is deleted. So use that info to catch theme deletions.
public on_deleted_site_transient_theme_deleted ( $transient = null )
$transient Deleted transient name.

on_page_load_custom_background() 공개 메소드

on_page_load_themes() 공개 메소드

When a new theme is about to get switched to we save info about the old one
public on_page_load_themes ( )

on_switch_theme() 공개 메소드

public on_switch_theme ( $new_name, $new_theme )

on_upgrader_process_complete_theme_install() 공개 메소드

public on_upgrader_process_complete_theme_install ( $upgrader_instance = null, $arr_data = null )

on_upgrader_process_complete_theme_update() 공개 메소드

public on_upgrader_process_complete_theme_update ( $upgrader_instance = null, $arr_data = null )

on_widget_update_callback() 공개 메소드

A widget is changed, i.e. new values are saved
public on_widget_update_callback ( $instance, $new_instance, $old_instance, $widget_instance )

프로퍼티 상세

$slug 공개적으로 프로퍼티

public $slug