WPSEO_Endpoint_Statistics::can_retrieve_data()
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() WPSEO Endpoint Statistics::can retrieve data Yoast 24.3
public function can_retrieve_data() { return current_user_can( self::CAPABILITY_RETRIEVE ); }