useful php snippets for Wordpress Theme Builds