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.
// 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
-
apply_filters( "{$this->prefix}_meowapps_is_registered", false, $this->prefix ); -
mgcl_link_url
filterapply_filters( 'mgcl_link_url', $url, $mediaId ); -
gallery_custom_links_enabled
filterapply_filters( 'gallery_custom_links_enabled', true ); -
apply_filters( "{$this->prefix}_meowapps_status", null ); -
apply_filters( "{$this->prefix}_meowapps_version_info", null ); -
apply_filters( "{MGCL_PREFIX}_meowapps_version_info", null ); -
gallery_custom_links_classes
filterapply_filters( 'gallery_custom_links_classes', array( '' ) ); -
do_action( 'litespeed_control_set_nocache', 'Meow Apps API must not be cached.' ); -
meowapps_plugins_status
filterapply_filters( 'meowapps_plugins_status', [] ); -
mgcl_allow_setup
filterapply_filters( 'mgcl_allow_setup', current_user_can( 'manage_options' ) ); -
mgcl_allow_usage
filterapply_filters( 'mgcl_allow_usage', current_user_can( 'administrator' ) ); -
mgcl_button_linker
filterapply_filters( 'mgcl_button_linker', '', $class_names, $link_setting['link_url'], $label, $link_setting['link_rel'], $link_setting['link_target'] ); -
mgcl_link_settings_max_ids
filterapply_filters( 'mgcl_link_settings_max_ids', 200 ); -
mgcl_linkers
filterapply_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: