WordPress Tutorials
Changing Trash Retention with EMPTY_TRASH_DAYS
Setting this to zero does not shorten the retention period. It removes the trash entirely, so Move to Trash becomes Delete Permanently and there is nothing to restore from.
Tag
Making WordPress sites load faster.
WordPress Tutorials
Setting this to zero does not shorten the retention period. It removes the trash entirely, so Move to Trash becomes Delete Permanently and there is nothing to restore from.
WordPress Tutorials
The constant does not cache anything. It tells WordPress to load one file very early, and if that file is missing or left behind by a removed plugin, the result is a site that either ignores the setting or fails to load at all.
WordPress Tutorials
Raising this number is widely recommended as a database cleanup measure, and it is not one. Autosaves reuse a single row per author, so the thing people are trying to trim is revisions, which this constant does not touch.
WordPress Tutorials
This is the last filter before a template is loaded, and it is one of the few where returning nothing produces a blank white page rather than a default. Whatever the callback returns is loaded, including an empty string.
WordPress Tutorials
The hook name says scripts and it handles both. It also covers the front end only, which is why a stylesheet loaded here is missing from the block editor and from the login screen.
WordPress Tutorials
The hook fires for every query on the request, including the ones building the admin menu and the media library. A callback without guards does not customise the blog — it rewrites the whole site.
Web Design
Mobile first is not about phones. It is about deciding priority while the screen is too small to avoid deciding, then adding space rather than removing content.
Plugins
Core already groups images and opens them in a lightbox. A gallery plugin earns its place through layout, albums and performance, and the last one is where most of them fail.
WordPress Tutorials
A revision is an ordinary row in the posts table with a different post type. That explains what it saves, what it silently omits, and why the database bloat panic is usually overstated.
WordPress Tutorials
WP-Cron is not a scheduler. It is a queue checked when somebody visits your site, which explains every scheduled post that never published and every backup that silently stopped running.
WordPress Tutorials
AMP was a bargain: accept a restricted subset of the web and get a speed guarantee plus preferential placement. The placement went away, the restrictions did not, and that changes the answer.
WordPress Tutorials
Four pieces sit under every WordPress site, and most hosting problems are really a question about which one is responsible. Knowing the division makes support tickets shorter and diagnoses correct.