add_link WordPress Action Hook
The add_link hook is a great way to add a custom link to your Wordpress site. This hook can be used to add a link to your menu, or to add a custom link to your sidebar. This hook is also useful for adding a link to your footer.
do_action( 'add_link', int $link_id ) #
Fires after a link was added to the database.
Parameters
- $link_id
(int)ID of the link that was added.
Source
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |