Home/Hooks/add_link
ACTION

add_link

Fires after a link was added to the database.

wp-admin/includes/bookmark.php
Line 263
1 Parameter
View Source

Usage

add_action( 'add_link', 'your_callback_function', 10, 1 );

Action Callback:

function your_callback_function( $link_id ) {
    // Your code here
    
}

Parameters

$link_id

Parameter 1

⚡ Action Hook

Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.