Skip to content

Instantly share code, notes, and snippets.

@mugukamil
Created February 1, 2015 07:24
Show Gist options
  • Save mugukamil/f59b9531710eaab63b34 to your computer and use it in GitHub Desktop.
Save mugukamil/f59b9531710eaab63b34 to your computer and use it in GitHub Desktop.
WordPress Variables, Tags and Functions
Global Variables
Store the data that WP generates
$post
$page
$is_iphone
$wp_version
Template Tags
Most Commonly used functions in theme templates
get_header()
the_title()
bloginfo(‘name’)
Script and Style Registration Functions
wp_enqueue_style()
adds CSS
wp_register_script()
links to JS
Actions and Filters
Actions gives the user access to specific events that WP executes
Filters allow for manipulation of data when pulling from and adding to the database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment