関数 get_url_in_content()
2014/12/11
関数 get_url_in_content()
定義ファイル :/blog/wp-includes/formatting.php 8
1 2 3 4 5 6 7 8 9 10 | function get_url_in_content( $content ) { if ( empty( $content ) ) { return false; } if ( preg_match( '/<a\s[^>]*?href=([\'"])(.+?)\1/is', $content, $matches ) ) { return esc_url_raw( $matches[2] ); } return false; } |