WPCF7_Service_OAuth2::authorize()
Метод класса: WPCF7_Service_OAuth2{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->authorize( $scope );
- $scope **
- -
По умолчанию: ''
Код WPCF7_Service_OAuth2::authorize() WPCF7 Service OAuth2::authorize CF7 5.8
protected function authorize( $scope = '' ) { $endpoint = add_query_arg( array( 'response_type' => 'code', 'client_id' => $this->client_id, 'redirect_uri' => urlencode( $this->get_redirect_uri() ), 'scope' => $scope, ), $this->authorization_endpoint ); if ( wp_redirect( sanitize_url( $endpoint ) ) ) { exit(); } }