WordPress hook directory
category_link

Description

Applied to the URL created for a category by the get_category_link function. Filter function arguments: link URL, category ID.

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for category_link

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
1.5.2 wp-includes/template-functions-category.php 39 View in context filter
2.0 wp-includes/template-functions-category.php 39 View in context filter
2.0.11 wp-includes/template-functions-category.php 40 View in context filter
2.1 wp-includes/category-template.php 40 View in context filter
2.2 wp-includes/category-template.php 40 View in context filter
2.3 wp-includes/category-template.php 44 View in context filter
2.5 wp-includes/category-template.php 44 View in context filter
2.6 wp-includes/category-template.php 45 View in context filter
2.7 wp-includes/category-template.php 73 View in context filter
2.8 wp-includes/category-template.php 39 View in context filter
2.9 wp-includes/category-template.php 39 View in context filter
3.0 wp-includes/category-template.php 38 View in context filter
3.1 wp-includes/taxonomy.php 2870 View in context filter
3.2 wp-includes/taxonomy.php 2920 View in context filter
3.3 wp-includes/taxonomy.php 2978 View in context filter
3.4 wp-includes/taxonomy.php 3010 View in context filter
3.5 wp-includes/taxonomy.php 3042 View in context filter
3.6 wp-includes/taxonomy.php 3126 View in context filter
3.7 wp-includes/taxonomy.php 3194 View in context filter
3.8 wp-includes/taxonomy.php 3210 View in context filter
3.9 wp-includes/taxonomy.php 3654 View in context filter
4.0 wp-includes/taxonomy.php 3716 View in context filter
4.1 wp-includes/taxonomy.php 4088 View in context filter
4.2 wp-includes/taxonomy.php 4411 View in context filter
4.3 wp-includes/taxonomy.php 4661 View in context filter
4.4 wp-includes/taxonomy.php 4379 View in context filter
4.5 wp-includes/taxonomy.php 4586 View in context filter
4.6 wp-includes/taxonomy.php 4130 View in context filter
4.7 wp-includes/taxonomy.php 3906 View in context filter
4.8 wp-includes/taxonomy.php 3900 View in context filter
4.9 wp-includes/taxonomy.php 3995 View in context filter
5.0 wp-includes/taxonomy.php 3994 View in context filter
5.1 wp-includes/taxonomy.php 4240 View in context filter

Related Hooks

We find related hooks using word stems. category_link has 2 significant word stem(s): category, link. Note that some of the hooks below may not appear in all versions of WP.