| name | theme-init |
|---|---|
| description | Use when the user wants to set up or clean up a WordPress site over the WP Engine SSH gateway using WP CLI. Trigger on requests like "run theme setup", "clean up the WordPress install", "delete the old pages/menus/themes/categories", "deactivate plugins on the site", "update the site title", or any WP Engine SSH + WP CLI cleanup task. Gathers all selections, shows one plan, confirms once, then executes. |
| disable-model-invocation | true |
| argument-hint | [environment] |
| allowed-tools | Bash, AskUserQuestion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php /** | |
| * Discovers and registers template part hooks | |
| * Uses transient caching for performance | |
| */ | |
| add_action('after_setup_theme', function () { | |
| $tp_dir = get_stylesheet_directory() . '/template-parts'; | |
| if (! is_dir($tp_dir)) { | |
| return; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Generates a dynamic URL for a placeholder image. | |
| * | |
| * @param int $width The width of the image. Default: 600. | |
| * @param int $height The height of the image. Default: 400. | |
| * @param string $backgroundColor The background color of the image. Default: 'black'. | |
| * @param string $textColor The text color of the image. Default: 'white'. | |
| * @param string $text The text to display on the image. Default: 'Placeholder'. | |
| * @param author Ian Garcia |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * All config options can be found here | |
| * https://unlighthouse.dev/api/config/ | |
| */ | |
| export default { | |
| // set site url | |
| site: '', | |
| // set max routes / pages | |
| scanner: { | |
| maxRoutes: 500, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *:focus-visible { | |
| outline: auto; | |
| } | |
| img { | |
| height: auto; | |
| max-width: 100%; | |
| display: block; | |
| } |