Skip to content

Commit

Permalink
Show unconfirmed attendees (#1390)
Browse files Browse the repository at this point in the history
* Show unconfirmed attendees

Allow unconfirmed attendees to show, if `tix_username` doesn't exist.
  • Loading branch information
pkevan authored Oct 11, 2024
1 parent 14478e7 commit c86f5ad
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions public_html/wp-content/plugins/camptix/addons/require-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,16 @@ public function replace_unknown_attendee_info_stubs( $ticket_info ) {
*/
public function hide_unconfirmed_attendees( $query_args ) {
$meta_query = array(
'key' => 'tix_username',
'value' => self::UNCONFIRMED_USERNAME,
'compare' => '!='
array(
'key' => 'tix_username',
'value' => self::UNCONFIRMED_USERNAME,
'compare' => '!=',
),
'relation' => 'OR',
array(
'key' => 'tix_username',
'compare' => 'NOT EXISTS',
)
);

if ( isset( $query_args['meta_query'] ) ) {
Expand Down

0 comments on commit c86f5ad

Please sign in to comment.