The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
1answer
149 views

get_post() vs global $post or $GLOBAL['post']

I'm writing a widget plugin and need access to post information. I've seen people using 3 different approaches: global $post; if ( isset( $GLOBALS['post'] ) ) $post = $GLOBALS['post']; $post = ...