Tech article

The Window of Opportunity: When Each WordPress Bootstrap Hook Is Open, and When It’s Already Closed

Community description: The Problem register_post_type() called in plugins_loaded — and the site crashes with a...

Dev.to | Sep 15, 2026 | Anatoliy Dovgun

Automated excerpt

register_post_type() called in plugins_loaded — and the site crashes with a fatal error, because taxonomies aren't ready yet. Or add_theme_support( 'post-thumbnails' ) called in init — no error, thumbnails just quietly never show up, because WordPress has already passed the point where a theme declares feature support. In plugins_loaded, taxonomies and other plugins' dependencies aren't ready yet — a fatal error is possible.

Selected automatically from source text; not independently written or fact-checked. Read the original for full context.

Read the original article

More tech news