wphooks.info - link_category

link_category

(trunk - 5.0-alpha-42719)

The hook occurs in the following 2 files

/wp-links-opml.php:
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
}

foreach ( (array) $cats as $cat ) :
	/**
	 * Filters the OPML outline link category name.
	 *
	 * @since 2.2.0
	 *
	 * @param string $catname The OPML outline category name.
	 */
	$catname = apply_filters( 'link_category', $cat->name );

?>
<outline type="category" title="<?php echo esc_attr( $catname ); ?>">
<?php
	$bookmarks = get_bookmarks( array( 'category' => $cat->term_id ) );
foreach ( (array) $bookmarks as $bookmark ) :
	/**
	 * Filters the OPML outline link title text.
	 *
wp-includes/bookmark-template.php:
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
				array( "linkcat-$cat->term_id", $r['class'] ),
				$r['category_before']
			);
			/**
			 * Filters the bookmarks category name.
			 *
			 * @since 2.2.0
			 *
			 * @param string $cat_name The category name of bookmarks.
			 */
			$catname = apply_filters( 'link_category', $cat->name );

			$output .= $r['title_before'];
			$output .= $catname;
			$output .= $r['title_after'];
			$output .= "\n\t<ul class='xoxo blogroll'>\n";
			$output .= _walk_bookmarks( $bookmarks, $r );
			$output .= "\n\t</ul>\n";
			$output .= $r['category_after'] . "\n";
		}