Photo Gallery by 10Web icon
Media, Galleries & Sliders

Photo Gallery by 10Web hooks reference

  • By 10Web
  • v1.8.49 New
  • Updated

Photo Gallery by 10Web 1.8.49 has 13 actions and 8 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 Photo Gallery by 10Web fires an action
add_action( 'bwg_before_init_gallery', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Photo Gallery by 10Web is about to use
add_filter( 'tenweb_booster_sdk', 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

  • booster/init.php line 21 · used in 2 places
    apply_filters( 'tenweb_booster_sdk', array( 'version' => '1.0.0', 'path' => get_template_directory() . '/booster/', ) );
  • admin/controllers/Uninstall.php line 24 · used in 2 places
    apply_filters( 'tenweb_new_free_users_lib_path', array('version' => '1.1.3', 'path' => BWG()->plugin_dir) );
  • photo-gallery.php line 508
    do_action( 'bwg_add_submenu_item', $parent_slug );
  • admin/views/AdminView.php line 12
    do_action( 'bwg_admin_scripts_after' );
  • admin/views/AdminView.php line 57
    do_action( 'bwg_admin_view_form_after' );
  • admin/views/Options.php line 649
    do_action( 'bwg_advanced_sections_social', $row );
  • framework/WDWLibraryEmbed.php line 617
    do_action( 'bwg_display_embed', $embed_type, $file_url, $embed_id, $attrs );
  • filemanager/view.php line 86
    do_action( 'bwg_filemanager_scripts_after' );
  • photo-gallery.php line 1872
    do_action( 'bwg_init_addons' );
  • admin/controllers/Options.php line 74
    do_action( 'bwg_options_execute_task', $task );
  • admin/views/Options.php line 412
    do_action( 'bwg_print_options_general_after' );
  • admin/views/Shortcode.php line 27
    do_action( 'bwg_shortcode_scripts_after' );
  • admin/models/Uninstall.php line 84
    do_action( 'bwg_uninstall_after' );
  • framework/WDWLibraryEmbed.php line 115
    apply_filters( 'init_facebook_add_embed_bwg', array(), $arg );
  • photo-gallery.php line 378
    apply_filters( 'tw_get_block_editor_assets', array() );
  • photo-gallery.php line 376
    apply_filters( 'tw_get_plugin_blocks', array() );
  • framework/WDWLibrary.php line 2017
    apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) );

Generated from Photo Gallery by 10Web'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: