WC_Embed::is_embedded_product
Check if this is an embedded product - to make sure we don't mess up regular posts.
Method of the class: WC_Embed{}
No Hooks.
Returns
true|false.
Usage
$result = WC_Embed::is_embedded_product();
Changelog
| Since 2.4.11 | Introduced. |
WC_Embed::is_embedded_product() WC Embed::is embedded product code WC 10.6.2
public static function is_embedded_product() {
if ( function_exists( 'is_embed' ) && is_embed() && is_product() ) {
return true;
}
return false;
}