diff --git a/cognito-forms-oembed.php b/cognito-forms-oembed.php index 5584e14..9082ac4 100644 --- a/cognito-forms-oembed.php +++ b/cognito-forms-oembed.php @@ -40,9 +40,9 @@ if ( !class_exists('CognitoFormsOEmbed') ) { class CognitoFormsOEmbed { - public function __constructor() { - wp_oembed_add_provider( 'https://www.cognitoforms.com/*', 'https://www.cognitoforms.com/f/oembed/' ); + public function __construct() { + wp_oembed_add_provider( '#https?://(www\.)?cognitoforms\.com/.*#i', 'https://www.cognitoforms.com/f/oembed/', true ); } } - new CognitoFormsOEmbed + new CognitoFormsOEmbed; } \ No newline at end of file