ID ) ) { return; } $grants = AgentAdapt_Grants::for_user( (int) $user->ID ); $desc = AgentAdapt_Signin::descriptions(); echo '
' . esc_html__( 'Personal agents cannot sign in to this account: it is not a customer account, or it has store management permissions.', 'agent-adapt' ) . '
'; } if ( ! $grants ) { echo '' . esc_html__( 'No personal agent is connected to this account.', 'agent-adapt' ) . '
'; return; } echo '| ' . esc_html( $h ) . ' | '; } echo '|||||
|---|---|---|---|---|---|
| ' . esc_html( '' !== (string) $g['name'] ? (string) $g['name'] : $domain ) . ' | '; echo '' . esc_html( $client_id ) . ' | ';
echo '' . esc_html( implode( '; ', $can ) ) . ' | '; echo '' . esc_html( wp_date( get_option( 'date_format' ), (int) $g['created'] ) ) . ' | '; /* translators: %s: human time difference */ echo '' . esc_html( sprintf( __( '%s ago', 'agent-adapt' ), human_time_diff( (int) $g['last_used'] ) ) ) . ' | '; echo '' . esc_html( wp_date( get_option( 'date_format' ), (int) $g['expires'] ) ) . ' | '; echo '
' . esc_html__( 'The customer can disconnect an agent from My Account โ Connected agents. Changing the account\'s password or email address disconnects them all.', 'agent-adapt' ) . '
'; } }