WPSEO_Endpoint_File_Size::can_retrieve_data()publicYoast 1.0

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

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

Хуков нет.

Возвращает

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

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

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

Код WPSEO_Endpoint_File_Size::can_retrieve_data() Yoast 24.0

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