get_url_in_content


get_url_in_content ( $content )

Parameters:
  • (string) content A string which might contain an `A` element with a non-empty `href` attribute.
Returns:
  • (string|false) Database-escaped URL via {@see esc_url()} if found, otherwise `false`.
Defined at:

Description

Extracts and returns the first URL from passed content.

Related Functions

get_the_content, get_user_count, get_shortcode_tags_in_content, get_link_to_edit, get_media_embedded_in_content

Top Google Results

User discussions

wpseek mobile