WC_Embed::is_embedded_product()
Check if this is an embedded product - to make sure we don't mess up regular posts.
Метод класса: WC_Embed{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = WC_Embed::is_embedded_product();
Список изменений
С версии 2.4.11 | Введена. |
Код WC_Embed::is_embedded_product() WC Embed::is embedded product WC 8.7.0
public static function is_embedded_product() { if ( function_exists( 'is_embed' ) && is_embed() && is_product() ) { return true; } return false; }