Skip to content

Instantly share code, notes, and snippets.

@wvega
Created August 16, 2016 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvega/cca6150271f65a5807ed98ab273f6761 to your computer and use it in GitHub Desktop.
Save wvega/cca6150271f65a5807ed98ab273f6761 to your computer and use it in GitHub Desktop.
Debug Session with Kieran McClung about Eventbrite API blog post
<?php
/**
* See http://wvega.com/850/getting-eventbrite-api-wordpress-plugin-to-work-on-systems-with-32-bit-builds-of-php/#comment-2840425264
*/
function wvega_850_eventbrite_workaround( $post ) {
echo '<pre><code>' . print_r( array( 'post' => $post, 'class' => get_class( $post ) ), true ) . '</pre></code>';
}
add_action( 'the_post', 'wvega_850_eventbrite_workaround', 0 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment