WC_Embed::is_embedded_product()
Check if this is an embedded product – to make sure we don’t mess up regular posts.
Description Description
Return Return
(bool)
Source Source
File: includes/class-wc-embed.php
public static function is_embedded_product() {
if ( function_exists( 'is_embed' ) && is_embed() && is_product() ) {
return true;
}
return false;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.4.11 | Introduced. |