WordPress at Your Fingertips
function is not described

Theme_Upgrader::hide_activate_preview_actions() public WP 3.4.0

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.

{} It's a 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.

Code of Theme_Upgrader::hide_activate_preview_actions() WP 5.8.2

public function hide_activate_preview_actions( $actions ) {
	unset( $actions['activate'], $actions['preview'] );
	return $actions;
}