1
This commit is contained in:
@@ -315,6 +315,15 @@ function igny8_collect_site_data($args = array()) {
|
||||
}
|
||||
|
||||
$tracked_taxonomies = array('category', 'post_tag', 'igny8_sectors', 'igny8_clusters');
|
||||
|
||||
// Get enabled taxonomies from settings
|
||||
if (function_exists('igny8_get_enabled_taxonomies')) {
|
||||
$enabled_taxonomies = igny8_get_enabled_taxonomies();
|
||||
if (!empty($enabled_taxonomies)) {
|
||||
$tracked_taxonomies = $enabled_taxonomies;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($tracked_taxonomies as $taxonomy) {
|
||||
if (!taxonomy_exists($taxonomy)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user