WPSEO_Endpoint_Statistics::can_retrieve_data()publicYoast 1.0

Determines whether or not data can be retrieved for the registered endpoints.

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

Хуков нет.

Возвращает

true|false. Whether or not data can be retrieved.

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

$WPSEO_Endpoint_Statistics = new WPSEO_Endpoint_Statistics();
$WPSEO_Endpoint_Statistics->can_retrieve_data();

Код WPSEO_Endpoint_Statistics::can_retrieve_data() Yoast 19.11

public function can_retrieve_data() {
	return current_user_can( self::CAPABILITY_RETRIEVE );
}