add_link
Fires after a link was added to the database.
Usage
add_action( 'add_link', 'wp_kama_add_link_action' ); /** * Function for `add_link` action-hook. * * @param int $link_id ID of the link that was added. * * @return void */ function wp_kama_add_link_action( $link_id ){ // action... }
- $link_id(int)
- ID of the link that was added.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
add_link
wp-admin/includes/bookmark.php 262
do_action( 'add_link', $link_id );