add_meta_boxes_link
Action HookDescription
Fires when link-specific meta boxes are added.Hook Information
File Location |
wp-admin/edit-link-form.php
View on GitHub
|
Hook Type | Action |
Line Number | 46 |
Hook Parameters
Type | Name | Description |
---|---|---|
object
|
$link
|
Link object. |
Usage Examples
Basic Usage
<?php
// Hook into add_meta_boxes_link
add_action('add_meta_boxes_link', 'my_custom_function', 10, 1);
function my_custom_function($link) {
// Your custom code here
}
Source Code Context
wp-admin/edit-link-form.php:46
- How this hook is used in WordPress core
<?php
41 *
42 * @since 3.0.0
43 *
44 * @param object $link Link object.
45 */
46 do_action( 'add_meta_boxes_link', $link );
47
48 /** This action is documented in wp-admin/includes/meta-boxes.php */
49 do_action( 'do_meta_boxes', 'link', 'normal', $link );
50 /** This action is documented in wp-admin/includes/meta-boxes.php */
51 do_action( 'do_meta_boxes', 'link', 'advanced', $link );
PHP Documentation
<?php
/**
* Fires when link-specific meta boxes are added.
*
* @since 3.0.0
*
* @param object $link Link object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/edit-link-form.php
Related Hooks
Related hooks will be displayed here in future updates.