Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
MortgageNews_Shortcode::enqueue_scroller_js( string $scroller_type )
Enqueue scroller JS Script.
Contents
Parameters Parameters
- $scroller_type
-
(string) (Required) Scroller type
Source Source
File: mortgage-news-widget/inc/MortgageNews_Shortcode.php
private function enqueue_scroller_js($scroller_type){
wp_enqueue_script( 'breakingNews-scroller', plugins_url( '../assets/js/breakingNews-scroller.js', __FILE__ ), array( 'jquery' ), '1.0.0', true );
$data = ' if (jQuery(".newsTicker-' . $scroller_type . '").length) {
jQuery(".newsTicker-' . $scroller_type . '").breakingNews()
}';
wp_add_inline_script( 'breakingNews-scroller', $data, 'after' );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |