Theme_Upgrader::hide_activate_preview_actions() – Don’t display the activate and preview actions to the user.
You appear to be a bot. Output may be restricted
Description
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.
Usage
$array = Theme_Upgrader::hide_activate_preview_actions( $actions );
Parameters
- $actions
- ( array ) required – Preview actions.
Returns
array
Source
File name: wordpress/wp-admin/includes/class-theme-upgrader.php
Lines:
1 to 4 of 4
public function hide_activate_preview_actions( $actions ) { unset( $actions['activate'], $actions['preview'] ); return $actions; }