Useful info about WordPress

Here are aligned useful WP functions needed for WP theme and plugin development:

get_bloginfo() — returns various info about blog

// get the WP theme URL
get_bloginfo( 'template_directory' );
// returns the base web site URL
get_bloginfo('siteurl' );
// get the stylesheet URL (style.css)
get_bloginfo( 'stylesheet_url' );

get_option() — returns info from the wp_options table

// get blogname from the options table

Options table:

tags: & category: -