WordPress filter hook
barn2_plugin_settings_help_links
Fired by 6 WordPress plugins, running on 20K+ sites between them.
“Filters the list of help links used at the top of the plugin settings page.”
How to use barn2_plugin_settings_help_links
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'barn2_plugin_settings_help_links', function( $value, $plugin ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from Product Tabs for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
6 plugins that fire barn2_plugin_settings_help_links
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Product Tabs for WooCommerce10,000+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:71 -
Document Library Lite4,000+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:70 -
Posts Table with Search & Sort3,000+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:71 -
Better Recent Comments2,000+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:70 -
Easy Post Types and Fields1,000+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:70 -
Wholesale Essentials for WooCommerce10+ installs
apply_filters( 'barn2_plugin_settings_help_links', ['doc' => ['url' => $plugin->get_documentation_url(), 'label' => __('Documentation', 'barn2'), 'target' => '_blank'], 'support' => ['url' => $plugin->get_support_url(), 'label' => __('Support', 'barn2'), 'target' => '_blank']], $plugin )dependencies/barn2/barn2-lib/src/Admin/Settings_Util.php:70
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.