Filter: bricks/elements/slider/scripts
Filters the list of script handles to be loaded for a specific element. The {$element_name} portion of the hook name should be replaced with the element’s name (e.g., slider, accordion, my_custom_element).
Parameters
Section titled “Parameters”$scripts(array): Array of script handles registered viawp_register_script.
Example usage
Section titled “Example usage”// Filter scripts for the 'slider' elementadd_filter( 'bricks/elements/slider/scripts', function( $scripts ) { // Add a custom script dependency $scripts[] = 'my-custom-slider-script';
return $scripts;} );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.