wc_rest_is_from_product_editor()
Returns true if the current REST request is from the product editor.
Хуков нет.
Возвращает
true|false
.
Использование
wc_rest_is_from_product_editor();
Список изменений
С версии 8.9.0 | Введена. |
Код wc_rest_is_from_product_editor() wc rest is from product editor WC 9.8.2
function wc_rest_is_from_product_editor() { return isset( $_SERVER['HTTP_X_WC_FROM_PRODUCT_EDITOR'] ) && '1' === $_SERVER['HTTP_X_WC_FROM_PRODUCT_EDITOR']; }