WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
| Line | Code |
|---|---|
| 2843 | |
| 2844 | /** |
| 2845 | * Filters the rel value that is added to URL matches converted to links. |
| 2846 | * |
| 2847 | * @since 5.3.0 |
| 2848 | * |
| 2849 | * @param string $rel The rel value. |
| 2850 | * @param string $url The matched URL being converted to a link tag. |
| 2851 | */ |
| 2852 | $rel = apply_filters( 'make_clickable_rel', $rel, $url ); |
| 2853 | $rel = esc_attr( $rel ); |
| 2854 | |
| 2855 | return $matches[1] . "<a href=\"$url\" rel=\"$rel\">$url</a>" . $suffix; |
| 2856 | } |
| 2857 | |
| 2858 | /** |
| 2859 | * Callback to convert URL match to HTML A element. |
| 2860 | * |
| 2861 | * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). |
| Line | Code |
| 2883 | } |
| 2884 | |
| 2885 | if ( 'comment_text' === current_filter() ) { |
| 2886 | $rel = 'nofollow ugc'; |
| 2887 | } else { |
| 2888 | $rel = 'nofollow'; |
| 2889 | } |
| 2890 | |
| 2891 | /** This filter is documented in wp-includes/formatting.php */ |
| 2892 | $rel = apply_filters( 'make_clickable_rel', $rel, $dest ); |
| 2893 | $rel = esc_attr( $rel ); |
| 2894 | |
| 2895 | return $matches[1] . "<a href=\"$dest\" rel=\"$rel\">$dest</a>$ret"; |
| 2896 | } |
| 2897 | |
| 2898 | /** |
| 2899 | * Callback to convert email address match to HTML A element. |
| 2900 | * |
| 2901 | * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). |