wp-content/themes/twentyeleven/functions.php:679Returns the first link from the post content. If none found, the post permalink is used as a fallback.
stringOne hook fires while twentyeleven_get_first_url() runs, in this order:
Filters the display of the permalink for the current post.
function twentyeleven_get_first_url() { $content = get_the_content(); $has_url = function_exists( 'get_url_in_content' ) ? get_url_in_content( $content ) : false; if ( ! $has_url ) { $has_url = twentyeleven_url_grabber(); } /** This filter is documented in wp-includes/link-template.php */ return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );}Introduced in Twenty Eleven 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyeleven/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.