function rcp_has_discounts() { $discounts = new RCP_Discounts(); if ($discounts->get_discounts(array('status' => 'active'))) { return true; } return false; }