WP_Links_List_Table::column_default
Handles the default column output.
Метод класса: WP_Links_List_Table{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$WP_Links_List_Table = new WP_Links_List_Table(); $WP_Links_List_Table->column_default( $item, $column_name );
- $item(объект) (обязательный)
- Link object.
- $column_name(строка) (обязательный)
- Current column name.
Список изменений
| С версии 4.3.0 | Введена. |
| С версии 5.9.0 | Renamed $link to $item to match parent class for PHP 8 named parameter support. |
Код WP_Links_List_Table::column_default() WP Links List Table::column default WP 6.9.4
public function column_default( $item, $column_name ) {
// Restores the more descriptive, specific name for use within this method.
$link = $item;
/**
* 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.
*/
do_action( 'manage_link_custom_column', $column_name, $link->link_id );
}