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 |
---|---|
2860 |
|
2861 | /** |
2862 | * Filters the rel value that is added to URL matches converted to links. |
2863 | * |
2864 | * @since 5.3.0 |
2865 | * |
2866 | * @param string $rel The rel value. |
2867 | * @param string $url The matched URL being converted to a link tag. |
2868 | */ |
2869 | $rel = apply_filters( 'make_clickable_rel', $rel, $url ); |
2870 | $rel = esc_attr( $rel ); |
2871 |
|
2872 | return $matches[1] . "<a href=\"$url\" rel=\"$rel\">$url</a>" . $suffix; |
2873 | } |
2874 |
|
2875 | /** |
2876 | * Callback to convert URL match to HTML A element. |
2877 | * |
2878 | * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). |
Line | Code |
2901 | } |
2902 |
|
2903 | if ( 'comment_text' === current_filter() ) { |
2904 | $rel = 'nofollow ugc'; |
2905 | } else { |
2906 | $rel = 'nofollow'; |
2907 | } |
2908 |
|
2909 | /** This filter is documented in wp-includes/formatting.php */ |
2910 | $rel = apply_filters( 'make_clickable_rel', $rel, $dest ); |
2911 | $rel = esc_attr( $rel ); |
2912 |
|
2913 | return $matches[1] . "<a href=\"$dest\" rel=\"$rel\">$dest</a>$ret"; |
2914 | } |
2915 |
|
2916 | /** |
2917 | * Callback to convert email address match to HTML A element. |
2918 | * |
2919 | * This function was backported from 2.5.0 to 2.3.2. Regex callback for make_clickable(). |