/home/techb158/public_html/wp-content/plugins/kirki/app/Services
Edit: /home/techb158/public_html/wp-content/plugins/kirki/app/Services/UtilityPageService.php (2039B)
exclude_trash()
->where('post_type', '=', PostTypes::UTILITY)
->where_has('meta', function (QueryBuilder $query) use ($utility_type) {
$query->where('meta_key', '=', PageMetaKeys::UTILITY_PAGE_TYPE)
->where('meta_value', '=', $utility_type);
})
->exists();
}
/**
* Get all utility pages
*
* @return Collection
*/
public function get_utility_pages()
{
return PageModel::query()
->with([
'meta' => function (QueryBuilder $query) {
$query->where('meta_key', '=', PageMetaKeys::UTILITY_PAGE_TYPE)
->where_in('meta_value', UtilityPageType::get_constant_values());
}
])
->exclude_trash()
->where('post_type', '=', PostTypes::UTILITY)
->get();
}
}