MetaSlider Gallery icon
Media, Galleries & Sliders

MetaSlider Gallery hooks reference

  • By MetaSlider
  • v2.39.0 New
  • Updated

MetaSlider Gallery 2.39.0 has 14 actions and 25 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when MetaSlider Gallery fires an action
add_action( 'ml_gallery_add_menu_items', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value MetaSlider Gallery is about to use
add_filter( 'ml_gallery_caption_source_editable', function( $editable, $source ) {
	// Change $editable here.
	return $editable;
}, 10, 2 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • class-ml-gallery.php line 1704 · used in 2 places
    do_action( 'metaslider_lightbox_admin_notices' );
  • admin/Optin.php line 159
    apply_filters( 'metaslider_lightbox_always_show_connect_report', false );
  • admin/Optin.php line 51
    apply_filters( 'metaslider_lightbox_always_show_optin_notice', false );
  • admin/EmailCollection.php line 99
    apply_filters( 'metaslider_lightbox_connect_endpoint', 'https://connect.metaslider.com/wp-json/connect/v1/subscribe' );
  • admin/EmailCollection.php line 115
    apply_filters( 'metaslider_lightbox_connect_key', self::CONNECT_KEY );
  • class-ml-slider-lightbox.php line 1721
    apply_filters( 'metaslider_lightbox_load_assets', $should_load_assets, $options );
  • class-ml-slider-lightbox.php line 1118
    apply_filters( 'metaslider_lightbox_supported_plugins', $supported_plugins_list );
  • class-ml-slider-lightbox.php line 7351
    apply_filters( 'metaslider_skip_store_plugin_data', false );
  • class-ml-slider-lightbox.php line 1905
    apply_filters( 'ml_lightbox_settings', $lightbox_settings );
  • admin/lib/Updraft_Notices.php line 142
    apply_filters( 'updraft_notices_force_id', false, $this );

Generated from MetaSlider Gallery's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: