Created
February 1, 2015 07:24
-
-
Save mugukamil/f59b9531710eaab63b34 to your computer and use it in GitHub Desktop.
WordPress Variables, Tags and Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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