Untitled
unknown
plain_text
a year ago
463 B
5
Indexable
if ($customCategoryOne) {
$custom_term = get_term_by('name', $customCategoryOne, 'insight-category');
$category_link = esc_url(get_term_link($custom_term));
}
else {
$category_link = esc_url(get_term_link($primary));
}
in above code im getting this error given below how can we resolve that
get_term_link's return type must be checked before calling esc_url using that value (WordPressVIPMinimum.Functions.CheckReturnValue.DirectFunctionCall).Editor is loading...
Leave a Comment