- fix youtube validation

This commit is contained in:
ashubawork
2024-04-11 11:41:45 +03:00
parent c6f398ab5f
commit 646db4ce48
+3
View File
@@ -1912,6 +1912,9 @@ function um_profile( $key ) {
* @return bool|string
*/
function um_youtube_id_from_url( $url ) {
if ( ! $url ) {
return true;
}
$url = preg_replace( '/&ab_channel=.*/', '', $url ); // ADBlock argument.
$url = preg_replace( '/\?si=.*/', '', $url ); // referral attribute.