manage_link_custom_column
Fires for each registered custom link column.
Usage
add_action( 'manage_link_custom_column', 'wp_kama_manage_link_custom_column_action', 10, 2 ); /** * Function for `manage_link_custom_column` action-hook. * * @param string $column_name Name of the custom column. * @param int $link_id Link ID. * * @return void */ function wp_kama_manage_link_custom_column_action( $column_name, $link_id ){ // action... }
- $column_name(string)
- Name of the custom column.
- $link_id(int)
- Link ID.
Changelog
Since 2.1.0 | Introduced. |
Where the hook is called
manage_link_custom_column
wp-admin/includes/class-wp-links-list-table.php 307
do_action( 'manage_link_custom_column', $column_name, $link->link_id );