Lightbox & Modal Popup WordPress Plugin icon
Media, Galleries & Sliders

Lightbox & Modal Popup WordPress Plugin hooks reference

  • By FooPlugins
  • v2.8.8 New
  • Updated

Lightbox & Modal Popup WordPress Plugin 2.8.8 has 18 actions and 24 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
// Change a value Lightbox & Modal Popup WordPress Plugin is about to use
add_filter( 'foobox_auto_link_images', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • free/foobox-free.php line 394 · used in 2 places
    apply_filters( 'foobox_enqueue_scripts', true );
  • free/includes/class-script-generator.php line 201 · used in 2 places
    apply_filters( 'foobox_generate_javascript_captions', 'console.log("FooBox - Custom Captions Code");' );
  • free/includes/class-script-generator.php line 202 · used in 2 places
    apply_filters( 'foobox_generate_javascript_custom', 'console.log("FooBox - Custom Extra JS");' );
  • free/includes/class-script-generator.php line 200 · used in 2 places
    apply_filters( 'foobox_generate_javascript_post', 'console.log("FooBox - Custom JavaScript (Post)");' );
  • free/includes/class-script-generator.php line 199 · used in 2 places
    apply_filters( 'foobox_generate_javascript_pre', 'console.log("FooBox - Custom JavaScript (Pre)");' );
  • free/includes/foopluginbase/classes/class-foo-plugin-textdomain.php line 33
    apply_filters( "{$plugin_slug}_languages_directory", $lang_dir );
  • free/includes/foopluginbase/views/settings.php line 93
    do_action( "{$plugin_slug}-settings_buttons" );
  • free/includes/foopluginbase/views/settings.php line 99
    do_action( "{$plugin_slug}-settings-sidebar" );
  • free/includes/foopluginbase/classes/class-foo-plugin-options.php line 44
    apply_filters( "{$this->option_name}-default_options", array() );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 139
    do_action( "{$this->plugin_slug}-{(is_admin()?'admin':'')}_init" );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 267
    do_action( "{$this->plugin_slug}-admin_print_scripts" );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 293
    do_action( "{$this->plugin_slug}-admin_print_styles" );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 235
    apply_filters( "{$this->plugin_slug}-admin_settings", false );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 331
    do_action( "{$this->plugin_slug}-admin_settings_render_page", $this->_settings );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 274
    do_action( "{$this->plugin_slug}-after_setting", $args );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 412
    do_action( "{$this->plugin_slug}-after_settings_render", $args );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 145
    do_action( "{$this->plugin_slug}-after_settings_section", $section_id, $title, $desc );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 105
    do_action( "{$this->plugin_slug}-after_settings_tab", $tab_id, $title );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 269
    do_action( "{$this->plugin_slug}-before_setting", $args );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 315
    do_action( "{$this->plugin_slug}-before_settings_render", $args );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 132
    do_action( "{$this->plugin_slug}-before_settings_section", $section_id, $title, $desc );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 95
    do_action( "{$this->plugin_slug}-before_settings_tab", $tab_id, $title );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 306
    apply_filters( "{$this->plugin_slug}-has_settings_page", true );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 148
    do_action( "{$this->plugin_slug}-loaded_dependencies" );
  • free/includes/foopluginbase/classes/class-foo-plugin-settings.php line 408
    do_action( "{$this->plugin_slug}-settings_custom_type_render", $args );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 339
    do_action( "{$this->plugin_slug}{(is_admin()?'-admin':'')}_inline_scripts", $this );
  • free/includes/foopluginbase/classes/class-foo-plugin-base.php line 335
    do_action( "{$this->plugin_slug}{(is_admin()?'-admin':'')}_inline_styles", $this );
  • free/includes/class-script-generator.php line 85
    apply_filters( 'foobox_caption_desc_attributes_override', array( 'captionDesc', 'description' ) );
  • free/includes/class-script-generator.php line 80
    apply_filters( 'foobox_caption_title_attributes_override', array( 'captionTitle', 'title' ) );
  • free/foobox-free.php line 387
    apply_filters( 'foobox_enqueue_styles', true );
  • free/includes/class-script-generator.php line 196
    apply_filters( 'foobox_generate_javascript_ready_event', true );
  • includes/admin/view-getting-started.php line 3
    apply_filters( 'foobox_getting_started_tagline', __( 'Thank you for choosing FooBox as your lightbox for your WordPress website!', 'foobox-image-lightbox' ) );
  • includes/admin/view-getting-started.php line 2
    apply_filters( 'foobox_getting_started_title', __( 'Welcome to FooBox!', 'foobox-image-lightbox' ) );
  • free/includes/class-exclude.php line 56
    apply_filters( 'foobox_metabox_desc_exclude', __( 'Exclude FooBox from this page or post? By default, FooBox will be included.', 'foobox-image-lightbox' ) );
  • free/includes/class-exclude.php line 57
    apply_filters( 'foobox_metabox_desc_include', __( 'Include FooBox on this page or post? By default, FooBox will be excluded!', 'foobox-image-lightbox' ) );
  • free/includes/class-exclude.php line 28
    apply_filters( 'foobox_metabox_post_types', $public_post_types );
  • free/includes/class-exclude.php line 32
    apply_filters( 'foobox_metabox_title', __( 'FooBox Javascript & CSS', 'foobox-image-lightbox' ) );
  • includes/class-block-editor.php line 295
    apply_filters( 'foobox_override_core_lightbox', self::setting_enabled( self::CORE_LIGHTBOX_SETTING, false ) );
  • plugin_locale

    filter
    free/includes/foopluginbase/classes/class-foo-plugin-textdomain.php line 36
    apply_filters( 'plugin_locale', get_locale(), $plugin_slug );

Generated from Lightbox & Modal Popup WordPress Plugin'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: