Skip to content

Instantly share code, notes, and snippets.

@cgsmith
Created August 11, 2016 18:07
Show Gist options
  • Save cgsmith/a533f53cbe9d2ebd7c4061447703e344 to your computer and use it in GitHub Desktop.
Save cgsmith/a533f53cbe9d2ebd7c4061447703e344 to your computer and use it in GitHub Desktop.
<?php
// Add meta query clause
$args['meta_query'][] = array(
'relation' => 'AND',
array(
'key' => 'wp_user_alerts_user_ids',
'compare' => 'NOT EXISTS'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment