About 1 results
Open links in new tab

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 ...