get_authorization_url(); $adstn_auth_method = ! empty( $settings['auth_method'] ) ? $settings['auth_method'] : 'oauth'; $adstn_expires_at = ! empty( $settings['token_expires_at'] ) ? (int) $settings['token_expires_at'] : 0; ?>

0 ) { $adstn_remaining = $adstn_expires_at - time(); if ( $adstn_remaining > 0 ) { /* translators: %d: number of minutes until token expires */ echo esc_html( sprintf( __( 'Expires in %d minutes (auto-refreshes)', 'adstn-auto-poster' ), round( $adstn_remaining / 60 ) ) ); } else { echo esc_html__( 'Expired (will auto-refresh on demand)', 'adstn-auto-poster' ); } } else { echo esc_html__( 'Permanent / Manual Token', 'adstn-auto-poster' ); } ?>
user.identity.read, user.content.write