Theme_Upgrader::hide_activate_preview_actions( array $actions )

Don’t display the activate and preview actions to the user.

Description Description

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.

Top ↑

Parameters Parameters


(array) (Required) Preview actions.

Top ↑

Return Return


Top ↑

Source Source

File: wp-admin/includes/class-theme-upgrader.php

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

Top ↑

Changelog Changelog

Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.