Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
get_event(); $waitlist_events = get_option('dbem_waitlists_events_default'); if ( $waitlist_events ){ if (!empty($EM_Event->event_attributes['waitlist'])) { $statuses = array(6,7); $sql = 'SELECT SUM(booking_spaces) FROM '.EM_BOOKINGS_TABLE. ' WHERE booking_status IN ('. implode(',', $statuses) .') AND event_id=%d'; $pending_spaces = $wpdb->get_var( $wpdb->prepare($sql, $EM_Bookings->event_id) ); if ( $pending_spaces > 0 ){ $return = false; } } } } if( get_option('dbem_waitlists_events') && is_user_logged_in() ) { $current_user = wp_get_current_user(); //$current_user->ID $statuses = array(6,7); $sql = 'SELECT SUM(booking_spaces) FROM '.EM_BOOKINGS_TABLE. ' WHERE booking_status IN ('. implode(',', $statuses) .') AND event_id=%d AND person_id=%d'; $pending_spaces = $wpdb->get_var( $wpdb->prepare($sql, $EM_Bookings->event_id, $current_user->ID ) ); if ( $pending_spaces > 0 && !isset($_REQUEST['uuid']) ){ $return = false; } } return $return; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)