Fires after a link was added to the database.
Parameters
$link_id
int- ID of the link that was added.
Source
do_action( 'add_link', $link_id );
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
Fires after a link was added to the database.
$link_id
intdo_action( 'add_link', $link_id );
Version | Description |
---|---|
2.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Overview
The
add_link
action hook is triggered in WordPress when a new link is added. You can use this hook to execute custom functions whenever a link is added to the WordPress database.Notes
add_action
.add_action
andremove_action
should match.By following the steps above, you can effectively use the
add_link
action hook to add custom functionality whenever a new link is added in WordPress.