Inventory_Presser_Plugin::add_carfax_badge()

add_carfax_badge


Description Description

Filter callback that outputs HTML markup that creates a Carfax badge if $vehicle contains Carfax report data.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: inventory-presser.php

	 */
	function add_orderby_to_query( $query )
	{
		//Do not mess with the query if it's not the main one and our CPT
		if ( ! $query->is_main_query()
			|| ! is_post_type_archive( INVP::POST_TYPE )
			|| ( empty( $_GET['orderby'] ) && empty( $this->settings['sort_vehicles_by'] ) ) )
		{
			return;
		}