WC_Product::get_post_password()publicWC 3.6.0

Get post password.

Метод класса: WC_Product{}

Хуков нет.

Возвращает

int.

Использование

$WC_Product = new WC_Product();
$WC_Product->get_post_password( $context );
$context(строка)
What the value is for. Valid values are view and edit.
По умолчанию: 'view'

Список изменений

С версии 3.6.0 Введена.

Код WC_Product::get_post_password() WC 8.7.0

public function get_post_password( $context = 'view' ) {
	return $this->get_prop( 'post_password', $context );
}