BetterLinks icon
SEO

BetterLinks hooks reference

  • By WPDeveloper
  • v3.1.7 New
  • Updated

BetterLinks 3.1.7 has 25 actions and 83 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 BetterLinks fires an action
add_action( 'betterlinks/click/inserted', function( $click_id, $item, $arg3 ) {
	// Your code runs here.
}, 10, 3 );

// Change a value BetterLinks is about to use
add_filter( 'betterlinks/protected_term_ids', 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

  • includes/Helper.php line 1540 · used in 2 places
    do_action( 'betterlinkspro/admin/check_password_protection', $data['short_url'], $data );
  • includes/Admin/Ajax.php line 1624 · used in 2 places
    apply_filters( 'betterlinkspro/admin/current_user_can_edit_settings', current_user_can( 'manage_options' ) );
  • includes/Admin/Ajax.php line 1274 · used in 2 places
    apply_filters( 'betterlinkspro/admin/update_settings', $response );
  • includes/API/Clicks.php line 373 · used in 2 places
    apply_filters( 'betterlinkspro/get_individual_graph_data', $graph_data, $id, $from, $to );
  • includes/Link/Utils.php line 412
    apply_filters( 'betterlinkspro/admin/parameter_tracking_values', array(), $data );
  • includes/Link/Utils.php line 383
    apply_filters( 'betterlinkspro/admin/split_test_tracking', false, $data );
  • includes/Admin/Notice.php line 663
    do_action_deprecated( 'btl_admin_notices', array(), '3.1.4', 'betterlinks_admin_notices' );
  • includes/Admin/Notice.php line 664
    do_action_deprecated( 'btl_compatibity_notices', array(), '3.1.4', 'betterlinks_compatibility_notices' );
  • includes/Admin/WPDev/PluginUsageTracker.php line 822
    apply_filters( "wpins_form_text_{$this->plugin_name}", $form );

Generated from BetterLinks'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: