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