Black Friday offer:

Save 50% on MetaSlider Pro!

Get MetaSlider Pro
Skip to content
MetaSlider
  • Slideshow
  • Gallery
  • Support
  • Docs
  • Blog
  • Login
Get MetaSlider Pro
MetaSlider

Get Started with MetaSlider Slideshow

3

Slideshow: Slide Types

14

Slideshow: Image Slides

5

Slideshow: Local Video Slides

3

Slideshow: Livid Video Slides

1

Slideshow: External Videos Slides

2

Slideshow: YouTube Video Slides

2

Slideshow: Vimeo Video Slides

1

Slideshow: TikTok Video Slides

1

Slideshow: Post Feed Slides

6

Slideshow: External Image Slides

1

Slideshow: Layer Slides

6

Slideshow: Custom HTML Slides

1

Slideshow: Image Folder Slides

1

Slideshow: WooCommerce Slides

1

Slideshow: Themes

10

Slideshow: Captions

5

Slideshow: Carousels

2

Slideshow: Slide Navigation

6

Slideshow FAQs

10

Slideshow: Animations

3

Slideshow: Page Builders

10

Slideshow: Plugin Integrations

3

Slideshow: Screen Sizes

5

Slideshow: Theme Editor

2

Slideshow: Advanced Slide Options

6

Slideshow: Translations

2

Slideshow: Post Images Slides

1

Slideshow: Cache and Optimization

8

Slideshow: Code Samples

13

Slideshow Troubleshooting

12

Slideshow: Accessibility

2

Slideshow: Theme Integrations

4

Slideshow: Developers

12
  • MetaSlider Database Information
  • Metaslider_post_feed_args
  • Metaslider_default_parameters
  • Metaslider_resized_image_url
  • Metaslider_image_{$type}_slider_markup
  • Metaslider_{type}_slider_anchor_attributes
  • Metaslider_{type}_slider_javascript
  • Metaslider_{type}_slider_javascript_before
  • Metaslider_{type}_slider_parameters
  • Metaslider_{type}_slider_image_attributes
  • Properties for MetaSlider Slideshow Libraries
  • How to Add or Remove Image Tag Attributes
View Categories
  • Home
  • MetaSlider Documentation
  • MetaSlider Slideshow
  • Slideshow: Developers

Metaslider_{type}_slider_javascript_before

0:00 / 0:11
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Export PDF Download this page as a PDF
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

You use this filter to add Javascript before the slideshow’s JavaScript call.

{type} can be flex, coin, responsive or nivo.

Start Building Sliders and Galleries Today!

Create and publish WordPress slideshows and galleries in minutes…

Get MetaSlider Pro
  • All MetaSlider Customers Get 2 New Plugins!November 19, 2026
  • MetaSlider Downloads 1.1: Free Email Gate Grows Your Mailing List With Every DownloadNovember 19, 2026
  • MetaSlider Slideshow 3.114.1: Faster Slideshows List, PHP 7.4 Required, Image Slides Back FirstNovember 19, 2026
  • MetaSlider Gallery Pro 1.6: Sell WooCommerce Products Straight From Your GalleryNovember 15, 2026
  • MetaSlider Gallery 2.39: Media Styles Reset, Privacy Tools and WCAG 2.2 Accessibility FixesNovember 15, 2026
  • Hrsms

    This is a great tool for showing many images without making the page too large. My content is extremely photo-driven, and I prefer having a slideshow over a long list of images. This plugin creates a great slide show and is very easy to use.

  • EveryHomeShouldHaveOne

    Looks good on desktops, tablets and phones. I use this on several sites and it just works without any problems. Free version is fine for most sites but for one I splashed on the Pro version as I wanted extras such as the thumbnail navigation. This is now one of my default plugins.

Helpful Links

  • MetaSlider Demos
  • Brand Materials
  • MetaSlider Blog
  • Support
  • Pre-Sales Questions
  • Plans & Pricing

Our Projects

  • PublishPress
  • TaxoPress
  • Logtivity

Comparisons

  • MetaSlider vs Smart Slider
  • MetaSlider vs Slider Revolution
  • Terms of Use
  • Privacy Policy

© 2026 MetaSlider LLC

RSS Facebook YouTube
  • Slideshow
  • Gallery
  • Support
  • Docs
  • Blog
Search