{# # REST API Auth Grant Access Form (Bootstrap 5 Override) # # Confirmation page for granting third-party app access via OAuth. # Rendered outside the WordPress theme (standalone page). # # Expected context: # app_name - Name of the requesting application # scope - Access scope (read, write, read_write) # permissions - Array of permission description strings # callback_url - Callback URL for the application # return_url - URL to return to on deny # granted_url - URL to redirect to on approve # logout_url - URL to log out # user - WP_User object of the logged-in user # # WooCommerce PHP equivalent: auth/form-grant-access.php # # @package WcBootstrap # @since 0.1.0 #} {{ do_action('woocommerce_auth_page_header') }}

{{ __('%s would like to connect to your store')|format(app_name|esc_html) }}

{{ wc_print_notices() }}

{{ __('This will give "%1$s" %2$s access which will allow it to:')|format( '' ~ app_name|esc_html ~ '', '' ~ scope|esc_html ~ '' )|wp_kses_post }}

{{ get_avatar(user.ID, 48)|raw }}
{{ __('Logged in as %s')|format(user.display_name|esc_html) }} {{ __('Logout') }}
{{ __('Approve') }} {{ __('Deny') }}
{{ do_action('woocommerce_auth_page_footer') }}