Action hook 'edit_link'

in WP Core File wp-admin/includes/bookmark.php at line 254

View Source

edit_link

Action Hook
Description
Fires after a link was updated in the database.

Hook Information

File Location wp-admin/includes/bookmark.php View on GitHub
Hook Type Action
Line Number 254

Hook Parameters

Type Name Description
int $link_id ID of the link that was updated.

Usage Examples

Basic Usage
<?php
// Hook into edit_link
add_action('edit_link', 'my_custom_function', 10, 1);

function my_custom_function($link_id) {
    // Your custom code here
}

Source Code Context

wp-admin/includes/bookmark.php:254 - How this hook is used in WordPress core
<?php
 249  		 *
 250  		 * @since 2.0.0
 251  		 *
 252  		 * @param int $link_id ID of the link that was updated.
 253  		 */
 254  		do_action( 'edit_link', $link_id );
 255  	} else {
 256  		/**
 257  		 * Fires after a link was added to the database.
 258  		 *
 259  		 * @since 2.0.0

PHP Documentation

<?php
/**
		 * Fires after a link was updated in the database.
		 *
		 * @since 2.0.0
		 *
		 * @param int $link_id ID of the link that was updated.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/includes/bookmark.php
Related Hooks

Related hooks will be displayed here in future updates.