Inventory_Presser_Customize_Dashboard::make_vehicles_table_columns_sortable( array $columns )

make_vehicles_table_columns_sortable


Description Description

Declares which of our custom columns on the list of posts are sortable.


Top ↑

Parameters Parameters

$columns

(array) (Required)


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class-customize-admin-dashboard.php

	function make_vehicles_table_columns_sortable( $columns )
	{
		$custom = array(
			// meta column id => sortby value used in query
			apply_filters( 'invp_prefix_meta_key', 'color' )        => apply_filters( 'invp_prefix_meta_key', 'color' ),
			apply_filters( 'invp_prefix_meta_key', 'odometer' )     => apply_filters( 'invp_prefix_meta_key', 'odometer' ),
			apply_filters( 'invp_prefix_meta_key', 'price' )        => apply_filters( 'invp_prefix_meta_key', 'price' ),
			apply_filters( 'invp_prefix_meta_key', 'stock_number' ) => apply_filters( 'invp_prefix_meta_key', 'stock_number' ),
			apply_filters( 'invp_prefix_meta_key', 'photo_count' )  => apply_filters( 'invp_prefix_meta_key', 'photo_count' ),
			apply_filters( 'invp_prefix_meta_key', 'thumbnail' )    => apply_filters( 'invp_prefix_meta_key', 'thumbnail' ),
		);
		return wp_parse_args( $custom, $columns );
	}