Created
November 23, 2019 06:23
-
-
Save cliffordp/a95298efb0754f12b1e8897e459c3630 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wpdb; | |
$debug = $wpdb->get_col( $wpdb->prepare( | |
" | |
SELECT pm.meta_value FROM {$wpdb->postmeta} pm | |
LEFT JOIN {$wpdb->posts} p ON p.ID = pm.post_id | |
WHERE pm.meta_key = %s | |
AND p.post_type = %s | |
", | |
'_tribe_rsvp_full_name', // Meta Key | |
'tribe_rsvp_attendees' // Post Type | |
) ); | |
print_r( $debug ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment