WPCF7_Service_OAuth2::get_http_authorization_header() protected CF7 1.0
{} Это метод класса: WPCF7_Service_OAuth2{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_http_authorization_header( $scheme );
- $scheme **
- -
По умолчанию: 'basic'
Код WPCF7_Service_OAuth2::get_http_authorization_header() WPCF7 Service OAuth2::get http authorization header CF7 5.4
protected function get_http_authorization_header( $scheme = 'basic' ) {
$scheme = strtolower( trim( $scheme ) );
switch ( $scheme ) {
case 'bearer':
return sprintf( 'Bearer %s', $this->access_token );
case 'basic':
default:
return sprintf( 'Basic %s',
base64_encode( $this->client_id . ':' . $this->client_secret )
);
}
}