Gallery Custom Links icon
Media, Galleries & Sliders

Gallery Custom Links hooks reference

  • By Jordy Meow
  • v2.3.7 New
  • Updated

Gallery Custom Links 2.3.7 has 1 actions and 13 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 Gallery Custom Links fires an action
add_action( 'litespeed_control_set_nocache', function( $arg1 ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Gallery Custom Links is about to use
add_filter( 'mgcl_link_url', function( $url, $mediaId ) {
	// Change $url here.
	return $url;
}, 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

  • classes/admin.php line 54 · used in 3 places
    apply_filters( "{$this->prefix}_meowapps_is_registered", false, $this->prefix );
  • common/admin.php line 745
    apply_filters( "{$this->prefix}_meowapps_status", null );
  • common/admin.php line 729
    apply_filters( "{$this->prefix}_meowapps_version_info", null );
  • classes/admin.php line 47
    apply_filters( "{MGCL_PREFIX}_meowapps_version_info", null );
  • common/issues.php line 19
    do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' );
  • common/admin.php line 785
    apply_filters( 'meowapps_plugins_status', [] );
  • classes/core.php line 612
    apply_filters( 'mgcl_allow_setup', current_user_can( 'manage_options' ) );
  • classes/core.php line 616
    apply_filters( 'mgcl_allow_usage', current_user_can( 'administrator' ) );
  • classes/core.php line 593
    apply_filters( 'mgcl_button_linker', '', $class_names, $link_setting['link_url'], $label, $link_setting['link_rel'], $link_setting['link_target'] );
  • mgcl_linkers

    filter
    classes/core.php line 247
    apply_filters( 'mgcl_linkers', false, $element, $parent, $mediaId, $url, $rel, $aria, $target );

Generated from Gallery Custom Links'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: