note: your can replace the app_ with your theme extension
Basic Theme Structure:
├───theme
│ ├───css
│ ├───fonts
│ ├───images
│ │ ├───iconified
│ │ └───social
│ ├───inc
│ │ └───widgets
│ ├───js
│ └───functions.php
These functions are commonly used functions used for every custom theme. Use and contribute !!
-
app_update_post_urls() - Update Post URLs This must be used when you want to update the site URLs once gone on production
-
app_setup() - App setup. Set up theme defaults and registers support for various WordPress features. Note that this function is the proper hook to use when enqueuing items that are meant to appear on the front end. Despite the name, it is used for enqueuing both scripts and styles.
-
app_scripts() - App Scriprs Set up theme scripts and styles Note that this function is hooked into the wp_enqueue_scripts hook, which runs before the init hook. The init hook is too late for some features, such as indicating support post thumbnails.
-
app_wp_title() - Wordpress Custom Title Create a nicely formatted and more specific title element text for output in head of document, based on current view.
-
app_site_favicon() - Custom Favicon
-
app_admin_favicon() - Custom Admin Favicon
-
app_custom_admin_footer() - Customize admin footer text
-
app_performance() - Displays the no.of mysql queries and its performance This will show the Mysql Stat and memory info. in HTML Comments only in Admin loggedin
-
app_google_analytics() - Add Google Analytics Tracking Code at footer
-
app_get_real_ip_address() - Gets the user's real IP address
-
app_custom_admin_logo() - Set Custom Logo via CSS
-
app_custom_login_logo() - Set Custom Logo in login page via CSS
-
app_login_logo_url_title() - Set Custom Url Title in login page
-
app_custom_gravatar() - Replace Default Gravatar with Custom Image
-
app_featured_image_theme_support() - Adding Featured Image Support to Your Theme
-
register_nav_menus() - This theme uses wp_nav_menu() in one location.
-
app_widgets_init() - Register widgetized area and update sidebar with default widgets.
-
app_excerpt_more() - Custom Excerpt Ending
To contribute please DM on @austinnoronha