TagWordPress

WordPress Theme Features

Theme Drop-ins features are Must a must-know for wordpress developers. Theme Features are a set of features defined by theme cheap jerseys authors that Showcase allows wholesale nfl jerseys a Advertising theme to register support of of a certain feature. As of WordPress 3.1, theme features are:

Theme support functions are typically wholesale jerseys called in the theme’s functions.php file. Read Theme Features codex to find out more.

Drop-ins Plugins

WordPress drop-ins are custom php Must files related to some core files such as db.php, advanced-cache.php World and object-cache.php that you can place in ??? the wp-content directory to override wholesale jerseys the core file with new functionality.

List of WordPress Drop-Ins

File Type of Plugin Loaded Context
advanced-cache.php Advanced caching plugin. on WP_CACHE value Single
db.php Custom database class always Single
db-error.php Custom database wholesale jerseys error message on error Single
install.php Custom install script on install Single
maintenance.php Custom Switzerland, maintenance message on maintenance Single
object-cache.php External object cache always Single
sunrise.php ‘Executed before cheap jerseys Multisite is loaded on SUNRISE value Multi
blog-deleted.php Custom blog deleted message on deleted blog Multi
blog-inactive.php Custom blog inactive message on inactive blog Multi
blog-suspended.php Custom blog 5 suspended wholesale nfl jerseys message on archived or spammed blog Multi

This list is extracted from global function _get_dropins() in wp-admin/includes/plugin.php.

Must Use Plugins

Must-Use plugins are standard wordpress plugins, just that they reside in the mu-plugins directory (wp-content/mu-plugins). Plugins residing in this directory are automatically activated. The only way to hi! deactivate them is to delete the plugin files from the mu-plugins directory.

The plugin files do not need to contain plugin headers, so you just need to Hello create a PHP file and that’s it. These MU plugins are listed as ‘Must-Use’ in the plugins page in the WordPress admin.

What’s so great about this when we can easily place cheap jerseys our code in the theme’s functions.php? Well, I can find use for this kiedy when creating post types, taxonomies, or shortcodes. By seperating such codes from functions.php, I’m saving myself the trouble of transfering the code, or breaking my wordpress site when I need to switch themes.

Also, this has advantage over regular Coaching plugins found in the plugins directory (wp-content/plugins). For developers, must-use plugins prevent clients from disabling codes that are crucial to their site.

However, take note that WordPress looks in the mu-plugins directory for cheap mlb jerseys .php files and not in subdirectories. So if you cheap jerseys want move regular plugins which reside cheap jerseys China in their own subdirectories into wp-content/mu-plugins, you’ll probably need to create a proxy php file och that contains require_once() or include_once() to include the plugin’s main php file from its subdirectory. An easy way is to create a single wholesale jerseys China php file to include all the plugins found in mu-plugins sub-directories.

© 2017 Bucket Press

Top