Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Appearance::add_media_scripts()publicWC 1.0

Add media scripts for image uploader.

{} It's a method of the class: Appearance{}

No Hooks.

Return

null. Nothing.

Usage

$Appearance = new Appearance();
$Appearance->add_media_scripts();

Code of Appearance::add_media_scripts() WC 7.1.0

public function add_media_scripts() {
	if ( ! PageController::is_admin_page() || ! $this->can_view() ) {
		return;
	}

	wp_enqueue_media();
}