You can use the plugin_action_links_
filter for that task:
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'add_support_link_wpse_220726' );
function add_support_link_wpse_220726( $links ) {
$links[] = '<a href="http://example.com/support/" target="_blank">Support</a>';
return $links;
}
Note that you must also pass the plugin name (plugin_basename(__FILE__)
) for it to work. That’s why take into consideration from where you will call it.
Related Posts:
- Is it ever okay to include inline CSS in plugins?
- Is it mandatory to use $wpdb->prefix in custom tables
- add_action hook for completely new post?
- Is get_option function cached?
- How do I log plugin (cron) actions?
- Is there a hook for when you switch themes?
- Problems after wp_set_password() containing an apostrophe
- Error getting correct blog_id on MU from functions.php
- product-attribute-slug-is-too-long-28-characters-max
- Front-End Form Submission in Shortcode
- Confusion on WP Nonce usage in my Plugin
- Plugin Localization
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- array_map() for sanitizing $_POST
- Add media and attach images to pages
- Why cant the WP Filesystem API read googlefonts.json?
- calling jquery function on plugin page
- Is there a faster way than wp_insert_post to add content to a blog
- Show comments fields in two columns
- Ajax in WordPress – path issue
- How to determine if the current file is loaded in a plugin or in a theme?
- How to convert this cURL to wp_remote_get?
- Which action is triggered when a theme was modified?
- Check if someone is editing a post (this content is currently locked)
- How to add a custom tag in contact form 7 and change the output in email?
- WordPress setting with select – where is my mistake?
- How can I create a plugin that changes the title color of a website?
- How to check if Woocommerce Order number equals to post ID?
- Two functions utilizing registration_errors filter
- Issue plugin commands in admin settings page
- Creating a shortcode, but getting tied up with OOP and Classes?
- Call PHP file within a plugin to activate function
- add_action not calling back to function
- Adding custom fields to WordPress nav menus
- Example Dashboard Widget, Cancel not working
- add_shortcode() not working inside of function
- How to add and remove a page
- correct way to call javascript into hook function
- “dashboard”-named PHP file doesn’t get included
- How to get plugin activate URL to use URL vars?
- rewrite URL based on selected taxonomy for post page
- Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
- How to Upload Images From a Folder (Not WP_Uploads)
- How to give a download link to a .csv file from the custom plugin?
- What’s wrong with this post__not_in argument?
- Plugin uninstall function is not working
- Loading custom js file on the admin page through plugin
- How to prevent someone from entering strings without making it available for translation?
- First and last name fields not filled when using wp_insert_user
- I am unable to save my data from a form
- Check if post belongs to any category
- What’s wrong with my usage of add_filter
- Moving/dragging a metabox removes TinyMCE’s content
- How can I develop a plugin that generates a page dynamically
- Redirect in WordPress plugin
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Can calling wp_enqueue_style in wp_iframe apply the stylesheet to everything not just the iframe?
- Copied files from plugin to theme not working
- How can I allow the user to press enter without creating a new element in the editor?
- wp_ prefix changed. What is the way to change so any prefix is understood?
- Forward an old url rewrite scheme to a new one?
- How to call function from another plugin?
- List categories with descriptions via plugin
- Will a plugin able to know is_user_logged_in?
- Widget instance options not showing correctly
- Create Woocommerce product without creating api credentials
- var(–text-color) in style.scss works once but not twitch
- How Place a Custom Form Fields in a specific location on the User Profile Page?
- Access to the template file of a plug-in
- Can’t remove action hook on plugin class
- Bootstrap within shortcode
- Custom plugin foreach wp_insert_post not working
- How to make premium plugin? I want to limit it until verification
- `registration_errors` filter doesn’t seem to be called
- How to grab data after wp user search is complete
- Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin
- How to direct WordPress to load custom template for custom post type
- get_the_tags doesn’t works?
- Stuck on a 504 error
- When does global/main code of plug execute?
- WordPress discards PNG file when uploading plugin file
- Registration Forms
- Override theme’s WooCommerce file
- My plugin showing “Are you sure you want to do this” on screen with a “Argument #2 is not an array in load.php’
- How and when would I implement some code which would take data from one part of the Db and put it in another?
- Cannot save settings value
- Is it possible to modify an Elated plugin portfolio-list template in such a way that it will not conflict with future plugin updates?
- Displaying settings information in a table
- Do you see any problems (mainly security-related) with how I’ve used wp_ajax_* actions?
- User subscription emails not firing from custom plugin
- Creating an archive page listing external data
- Plugin settings not saving and 404 is generated on submit
- Refresh or redirect page after activate my plugin
- How specify a directory to file when downloading it
- Why does is_front_page and is_home always return true for posts in wordpress? [closed]
- Menu_slug used for creating options page
- modify buddpress adminbar only in admin pages
- plugin backend help
- How to translate WP plugin name?
- Programmatically creating posts based on external JSON feed (asynchronously)