Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Embed::is_video_provider
Check if a provider is a video provider.
Method of the class: Embed{}
No Hooks.
Returns
true|false. True if video provider.
Usage
// private - for code of main (parent) class only $result = $this->is_video_provider( $provider ): bool;
- $provider(string) (required)
- Provider name.
Embed::is_video_provider() Embed::is video provider code WC 10.5.0
private function is_video_provider( string $provider ): bool {
return array_key_exists( $provider, self::VIDEO_PROVIDERS );
}