Theme_Upgrader::hide_activate_preview_actions

Advertisement

Summery Summery

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

Syntax Syntax

Theme_Upgrader::hide_activate_preview_actions( array $actions )

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.

Parameters Parameters

$actions

(Required) Preview actions.

Return Return

(array)

Source Source

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

		if ( is_wp_error( $parent_result ) ) {
			add_filter( 'install_theme_complete_actions', array( $this, 'hide_activate_preview_actions' ) );
		}

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply