mirror of
https://ghproxy.net/https://github.com/elementor/activity-log.git
synced 2025-10-04 03:06:11 +08:00
WP Coding
This commit is contained in:
parent
a9ddc46b05
commit
c6dcd4d233
1 changed files with 9 additions and 7 deletions
|
@ -29,13 +29,15 @@ class AAL_Hook_Theme extends AAL_Hook_Base {
|
|||
}
|
||||
|
||||
public function hooks_switch_theme( $new_name, WP_Theme $new_theme ) {
|
||||
aal_insert_log( array(
|
||||
'action' => 'activated',
|
||||
'object_type' => 'Theme',
|
||||
'object_subtype' => $new_theme->get_stylesheet(),
|
||||
'object_id' => 0,
|
||||
'object_name' => $new_name,
|
||||
) );
|
||||
aal_insert_log(
|
||||
array(
|
||||
'action' => 'activated',
|
||||
'object_type' => 'Theme',
|
||||
'object_subtype' => $new_theme->get_stylesheet(),
|
||||
'object_id' => 0,
|
||||
'object_name' => $new_name,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function hooks_theme_customizer_modified( WP_Customize_Manager $obj ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue