WordPress at Your Fingertips
function is not described

Custom_Image_Header::js() public WP 2.1.0

Execute JavaScript depending on step.

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

No Hooks.

Return

null. Nothing.

Usage

$Custom_Image_Header = new Custom_Image_Header();
$Custom_Image_Header->js();

Changelog

Since 2.1.0 Introduced.

Code of Custom_Image_Header::js() WP 5.8.2

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

	if ( ( 1 === $step || 3 === $step ) && current_theme_supports( 'custom-header', 'header-text' ) ) {
		$this->js_1();
	} elseif ( 2 === $step ) {
		$this->js_2();
	}
}