Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- brighttalk_callback( $arg1, $arg2, $post ) {
- if ( $post instanceof WP_Post ) {
- // This is an object
- // We can use $post->ID to get the ID
- } else {
- // This is an ID
- // We can use $post to get the ID
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement