tags for users that are ALREADY saved, * so Select2 can display their labels without an extra AJAX call. * * @param WP_Post $post */ public function render_metabox( $post ) { wp_nonce_field( 'aisp_exclusive_users_save', 'aisp_exclusive_users_nonce' ); $selected_ids = aisp_exclusive_products_get_allowed_users( $post->ID ); // Fetch data only for the already-selected users (lightweight). $selected_users = array(); if ( ! empty( $selected_ids ) ) { $selected_users = get_users( array( 'include' => $selected_ids, 'fields' => array( 'ID', 'display_name', 'user_email' ), ) ); } ?>