link_category
Filters the category name.
Usage
add_filter( 'link_category', 'wp_kama_link_category_filter' );
/**
* Function for `link_category` filter-hook.
*
* @param string $cat_name The category name.
*
* @return string
*/
function wp_kama_link_category_filter( $cat_name ){
// filter...
return $cat_name;
}
- $cat_name(string)
- The category name.
Changelog
| Since 2.2.0 | Introduced. |
Where the hook is called
link_category
link_category
wp-includes/bookmark-template.php 280
$catname = apply_filters( 'link_category', $cat->name );
wp-links-opml.php 67
$catname = apply_filters( 'link_category', $cat->name );
wp-includes/deprecated.php 1066
echo ' <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";