Theme_Upgrader::hide_activate_preview_actions()
Don't display the activate and preview actions to the user.
Hooked to the install_theme_complete_actions filter by Theme_Upgrader::check_parent_theme_filter() when installing a child theme and installing the parent theme fails.
Method of the class: Theme_Upgrader{}
No Hooks.
Return
Array
.
Usage
$Theme_Upgrader = new Theme_Upgrader(); $Theme_Upgrader->hide_activate_preview_actions( $actions );
- $actions(array) (required)
- Preview actions.
Changelog
Since 3.4.0 | Introduced. |
Theme_Upgrader::hide_activate_preview_actions() Theme Upgrader::hide activate preview actions code WP 6.6.2
public function hide_activate_preview_actions( $actions ) { unset( $actions['activate'], $actions['preview'] ); return $actions; }