theme.json Is the New functions.php (for Styles)
theme.json is the canonical place to configure block editor styles, settings, and tokens. Colour palettes, font sizes, layout sizes, and spacing units all live there.The big benefi…
Read article →theme.json is the canonical place to configure block editor styles, settings, and tokens. Colour palettes, font sizes, layout sizes, and spacing units all live there.The big benefi…
Read article →The Block Bindings API connects block attributes to dynamic data sources — post meta, options, or any registered source. core/paragraph can read its content from…
Read article →A block pattern is a template — inserting it copies the blocks into the document, and edits do not affect the pattern. A reusable block…
Read article →wp search-replace old new --dry-run is the safest way to move a site between domains. Always run with --dry-run first.wp db export takes a fast…
Read article →Register routes with register_rest_route(). The permission_callback is required — set it to __return_true only when the route is genuinely public.For privileged operations, check c…
Read article →Transients are short-lived cached values with optional expiry. By default they live in the options table. With a persistent object cache (Redis, Memcached) they live…
Read article →WP-Cron runs on page loads. On low-traffic sites jobs may not run at all; on high-traffic sites a single request can run many jobs and…
Read article →WP-Cron is not a system cron — it is a check that runs on incoming requests. If no one visits the site, scheduled jobs do…
Read article →Set show_in_rest to true unless you have a specific reason not to — without it, the Gutenberg editor falls back to the classic interface.Set supports…
Read article →meta_query joins the postmeta table once per meta clause. Three meta clauses means three joins on a typically un-indexed table.Add a database index on (meta_key,…
Read article →