Developer guide
Child themes, template overrides, hooks and the REST API.
- Build on Reign with a child theme Why direct edits to Reign are lost on update, how to get the official child theme, and what to put in it versus in Custom Code.
- Common changes with a few lines of code (Child theme recipes) Short, tested snippets for the changes site owners ask for most - a banner above the header, the page title area, excerpts, the member menu, your own CSS, one template part, turning a feature off and adding to the footer.
- Override Reign templates from a child theme The directory structure Reign ships for WordPress core templates and for each supported plugin, and the precedence rule for overriding any of them.
- Hooks reference The Reign action and filter hooks most useful for site builders, grouped by area, plus what changed for hooks carried over from the Reign add-ons era.
- Course page layout How the Reign course page is built from each LMS's own functions, and the hooks for adding, moving or changing its sections without copying a template.
- Job and resume page layout How the Reign job and resume pages are built from WP Job Manager and Resume Manager's own functions, and the hooks for adding, moving or changing their sections without copying a template.
- REST API The route Reign registers under reign/v1, what it returns, how to detect Reign from code, and why sign-in and registration are not REST routes.
- AJAX actions The admin-ajax actions Reign registers, who can call each one, the nonce it expects, and what it returns.
- Constants, query flags and WP-CLI The wp-config constants, the debugging query flag and the WP-CLI command Reign supports.
- Make any plugin follow Reign dark mode (Map a plugin's colours to Reign tokens) How to make a plugin that Reign does not cover switch with your light and dark mode, by pointing its colours at Reign's colour tokens.
10 pages, written for Reign 8.1.2.