Custom_Image_Header::js()

In this article

Executes JavaScript depending on step.

Source

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();
	}
}

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

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