Posted on

Create a WordPress Theme – Functions

wordpress-functions-01

Useful Functions when Developing WordPress Themes

get_bloginfo( $show, $filter );
Get information about the site

get_the_title( $ID );
Get the title of the post

get_post_meta( $post_id, $key, $single );
Get meta data about a post

Useful Hooks when Developing WordPress Themes

add_action( ‘save_post’, ‘save_post_func’, 10, 3 );
Called whenever a post is saved; running a function save_post_func( $post_id, $post, $update )

Links

WordPress Database Description
Roles and Capabilitiesdfd