Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. brighttalk_callback( $arg1, $arg2, $post ) {
  2.     if ( $post instanceof WP_Post ) {
  3.         // This is an object
  4.         // We can use $post->ID to get the ID
  5.     } else {
  6.         // This is an ID
  7.         // We can use $post to get the ID
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement