mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
Add category_link filter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
84f2d4264c
commit
5e06010606
@ -39,6 +39,7 @@ function get_category_link($echo = false, $category_id, $category_nicename) {
|
|||||||
$catlink = str_replace('%category%', $category_nicename, $catlink);
|
$catlink = str_replace('%category%', $category_nicename, $catlink);
|
||||||
$catlink = get_settings('home') . trailingslashit($catlink);
|
$catlink = get_settings('home') . trailingslashit($catlink);
|
||||||
}
|
}
|
||||||
|
$catlink = apply_filters('category_link', $catlink);
|
||||||
if ($echo) echo $catlink;
|
if ($echo) echo $catlink;
|
||||||
return $catlink;
|
return $catlink;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user