Custom_Image_Header::js_includes

Advertisement

Summery Summery

Set up the enqueue for the JavaScript files.

Syntax Syntax

Custom_Image_Header::js_includes()

Source Source

File: wp-admin/includes/class-custom-image-header.php

	public function js_includes() {
		$step = $this->step();

		if ( ( 1 == $step || 3 == $step ) ) {
			wp_enqueue_media();
			wp_enqueue_script( 'custom-header' );
			if ( current_theme_supports( 'custom-header', 'header-text' ) ) {
				wp_enqueue_script( 'wp-color-picker' );
			}
		} elseif ( 2 == $step ) {
			wp_enqueue_script( 'imgareaselect' );
		}
	}

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.