WP_Links_List_Table::get_sortable_columns()protectedWP 1.0

Method of the class: WP_Links_List_Table{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sortable_columns();

WP_Links_List_Table::get_sortable_columns() code WP 6.5.2

protected function get_sortable_columns() {
	return array(
		'name'    => array( 'name', false, _x( 'Name', 'link name' ), __( 'Table ordered by Name.' ), 'asc' ),
		'url'     => array( 'url', false, __( 'URL' ), __( 'Table ordered by URL.' ) ),
		'visible' => array( 'visible', false, __( 'Visible' ), __( 'Table ordered by Visibility.' ) ),
		'rating'  => array( 'rating', false, __( 'Rating' ), __( 'Table ordered by Rating.' ) ),
	);
}