File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ function tws_bfsc_init() {
127
127
wp_register_script (
128
128
'tws-slider-carousel-script ' ,
129
129
plugins_url ( 'build/slider.js ' , __FILE__ ),
130
- array ( 'jquery ' , ' tws-slick-script ' ),
130
+ array ( 'tws-slick-script ' ),
131
131
'1.0.0 ' ,
132
132
true
133
133
);
@@ -146,12 +146,21 @@ function tws_bfsc_init() {
146
146
)
147
147
);
148
148
149
+ /**
150
+ * WPHOOK: Filter -> slider bullet render callback content.
151
+ *
152
+ * @param string[] $bullets The bullets' content.
153
+ * @var string[]
154
+ */
155
+ $ bullets = apply_filters ( 'hzfex_slider_carousel_bullet_content ' , array () );
156
+
149
157
wp_localize_script (
150
158
'tws-slider-carousel-script ' ,
151
159
'twsSliderCarousel ' ,
152
160
array (
153
161
'containers ' => tws_bfsc_get_elements (),
154
162
'arrows ' => $ arrows ,
163
+ 'bullets ' => $ bullets ,
155
164
)
156
165
);
157
166
You can’t perform that action at this time.
0 commit comments