Custom_Image_Header::js()
Executes JavaScript depending on step.
Method of the class: Custom_Image_Header{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Custom_Image_Header = new Custom_Image_Header(); $Custom_Image_Header->js();
Changelog
Since 2.1.0 | Introduced. |
Custom_Image_Header::js() Custom Image Header::js code WP 6.5.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(); } }