Action hook 'manage_link_custom_column'

in WP Core File wp-admin/includes/class-wp-links-list-table.php at line 307

View Source

manage_link_custom_column

Action Hook
Description
Fires for each registered custom link column.

Hook Information

File Location wp-admin/includes/class-wp-links-list-table.php View on GitHub
Hook Type Action
Line Number 307

Hook Parameters

Type Name Description
string $column_name Name of the custom column.
int $link_id Link ID.

Usage Examples

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

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

Source Code Context

wp-admin/includes/class-wp-links-list-table.php:307 - How this hook is used in WordPress core
<?php
 302  		 * @since 2.1.0
 303  		 *
 304  		 * @param string $column_name Name of the custom column.
 305  		 * @param int    $link_id     Link ID.
 306  		 */
 307  		do_action( 'manage_link_custom_column', $column_name, $link->link_id );
 308  	}
 309  
 310  	/**
 311  	 * Generates the list table rows.
 312  	 *

PHP Documentation

<?php
/**
		 * Fires for each registered custom link column.
		 *
		 * @since 2.1.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param int    $link_id     Link ID.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/includes/class-wp-links-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.