__( 'All', 'aihouse' ), 'new' => __( 'New', 'aihouse' ), 'answered' => __( 'Answered', 'aihouse' ), 'closed' => __( 'Closed', 'aihouse' ), ); ?>

0 ) : ?>

 

prefix . MYBOT_TABLE_SUFFIX . 'messages'; $mybot_table_requests = $wpdb->prefix . MYBOT_TABLE_SUFFIX . 'requests'; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- admin screen, one query. $mybot_sessions = $wpdb->get_results( $wpdb->prepare( "SELECT session_id, COUNT(*) AS total, MAX(created_at) AS last_at FROM {$mybot_messages_table} GROUP BY session_id ORDER BY last_at DESC LIMIT %d", 8 ), ARRAY_A ); $mybot_sessions = is_array( $mybot_sessions ) ? $mybot_sessions : array(); ?>

get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$mybot_table_requests} WHERE session_id = %s AND status = 'new'", $mybot_session_id ) ); ?>
0 ) : ?> —

· · ·

· ·

1 ) : ?>

1 ) : ?> ← →

` block, closed by default: it is not what somebody came to this screen for. The * images point at `mybot/v1/attachment`, which is `manage_options` only, never cached, and addressed * by message id — the file name is never printed, here or anywhere (docs/16 muc 5.6). */ $mybot_pictures = mybot()->logger->recent_attachments( 12 ); ?>