Created
July 10, 2021 11:02
-
-
Save jreviews/9a7fd651367f4b36a766e198eae6e040 to your computer and use it in GitHub Desktop.
Replace Featured label text with custom text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('_JEXEC') or die; | |
Clickfwd\Hook\Filter::add('listing_status_labels', 'jreviews_change_featured_label_to_urgent'); | |
function jreviews_change_featured_label_to_urgent($labels, $params) | |
{ | |
if (! isset($labels['featured'])) { | |
return $labels; | |
} | |
$labels['featured']['class'] = 'jrStatusLabel fwd-bg-red-600 fwd-text-white'; | |
$labels['featured']['text'] = 'Priority'; | |
return $labels; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment