add_link
Fires after a link was added to the database.
Description
Parameters (1)
- 0. $link_id (int)
- ID of the link that was added.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'add_link', $link_id );
- The following example is for adding a hook callback.
- // define the add_link callback
- function action_add_link( $link_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'add_link', 'action_add_link', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'add_link', 'action_add_link', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/bookmark.php
- do_action( 'add_link', $link_id );