{"id":27136508,"url":"https://github.com/wordplate/wordplate","last_synced_at":"2025-04-08T03:01:10.823Z","repository":{"id":41203471,"uuid":"13329845","full_name":"vinkla/wordplate","owner":"vinkla","description":"A boilerplate for WordPress, built with Composer and designed with sensible defaults.","archived":false,"fork":false,"pushed_at":"2025-04-01T04:50:37.000Z","size":1987,"stargazers_count":2131,"open_issues_count":1,"forks_count":155,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-04-01T16:12:09.082Z","etag":null,"topics":["boilerplate","composer","php","vite","wordplate","wordpress","wordpress-packagist"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vinkla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-10-04T17:11:21.000Z","updated_at":"2025-04-01T04:50:35.000Z","dependencies_parsed_at":"2023-02-17T19:15:27.394Z","dependency_job_id":"e952c2f5-c3ef-4a74-9215-75b9c4a2c05c","html_url":"https://github.com/vinkla/wordplate","commit_stats":{"total_commits":1277,"total_committers":31,"mean_commits":"41.193548387096776","dds":0.5324980422866092,"last_synced_commit":"cd98253f672a4c3213bfdd6f4da5ab402b1486bf"},"previous_names":["wordplate/wordplate"],"tags_count":116,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinkla%2Fwordplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinkla%2Fwordplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinkla%2Fwordplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinkla%2Fwordplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinkla","download_url":"https://codeload.github.com/vinkla/wordplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767220,"owners_count":20992542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","composer","php","vite","wordplate","wordpress","wordpress-packagist"],"created_at":"2025-04-08T03:00:31.615Z","updated_at":"2025-04-08T03:01:10.618Z","avatar_url":"https://github.com/vinkla.png","language":"PHP","readme":"![WordPlate](https://github.com/vinkla/wordplate/assets/499192/a6194bed-09c0-418e-8281-2541922aa5f0)\n\n# WordPlate\n\nWordPlate is a boilerplate for WordPress, built with Composer and designed with sensible defaults.\n\n[![Build Status](https://badgen.net/github/checks/vinkla/wordplate?label=build\u0026icon=github)](https://github.com/vinkla/wordplate/actions)\n[![Monthly Downloads](https://badgen.net/packagist/dm/vinkla/wordplate)](https://packagist.org/packages/vinkla/wordplate/stats)\n[![Latest Version](https://badgen.net/packagist/v/vinkla/wordplate)](https://packagist.org/packages/vinkla/wordplate)\n\n- [Features](#features)\n- [Installation](#installation)\n- [Configuration](#configuration)\n    - [Public Directory](#public-directory)\n    - [Environment Configuration](#environment-configuration)\n    - [Salt Keys](#salt-keys)\n- [Plugins](#plugins)\n    - [WordPress Packagist](#wordpress-packagist)\n    - [Must Use Plugins](#must-use-plugins)\n    - [Included Plugins](#included-plugins)\n- [Vite.js](#vitejs)\n- [Mail](#mail)\n- [FAQ](#faq)\n- [Upgrade Guide](#upgrade-guide)\n- [Acknowledgements](#acknowledgements)\n- [License](#license)\n\n## Features\n\n- **WordPress + Composer = ❤️**\n    \n    WordPress can be installed and updated with ease using Composer. To update WordPress, simply run the command `composer update`.\n\n- **Environment Files**\n    \n    Similar to Laravel, WordPlate stores environment variables, such as database credentials, in an `.env` file.\n\n- **WordPress Packagist**\n    \n    WordPress Packagist enables the management of WordPress plugins and themes through Composer.\n\n- **Must-use plugins**\n    \n    Don't worry about clients deactivating plugins; [must-use plugins](https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/) are enabled by default.\n\n- **Vite.js**\n    \n    Using Vite, you can rapidly set up and begin building and minifying your CSS and JavaScript.\n\n- **Tailwind CSS**\n    \n    Tailwind CSS is included by default, allowing you to quickly build custom designs.\n\n- **Debugging**\n    \n    Familiar debugging helper functions are integrated such as `dump()` and `dd()`.\n\n- **Clean UI**\n  \n    Enhance the WordPress dashboard and improves the [user experience](https://user-images.githubusercontent.com/499192/143415951-b01e9498-5f18-44dd-9d4b-51fb2d479a22.png) for clients.\n\n- **Security**\n\n    We've replaced WordPress' outdated and insecure MD5-based password hashing with modern and secure bcrypt using the  [`roots/wp-password-bcrypt`](https://github.com/roots/wp-password-bcrypt#readme) package.\n\n## Installation\n\nBefore using WordPlate, make sure you have PHP 8.2 and MySQL 8.0 installed on your computer. You'll also need to have Composer, a package manager for PHP, installed on your computer.\n\nTo install WordPlate, open your terminal and enter the following command:\n\n```sh\ncomposer create-project --prefer-dist vinkla/wordplate example-app\n```\n\nAfter installing WordPlate, you'll need to update the database credentials in the `.env` file. This file is located in the root directory of your project. Open the file and update the following lines with your database credentials:\n\n```env\nDB_NAME=database\nDB_USER=username\nDB_PASSWORD=password\n```\n\nTo run your WordPlate application, you may serve it using PHP's built-in web server. Open your terminal and navigate to the `public` directory of your project. Then, enter the following command:\n\n```sh\nphp -S 127.0.0.1:8000 -t public/\n```\n\nFinally, open your web browser and visit the following URLs to view your WordPlate application:\n\n- [`http://127.0.0.1:8000/`](http://127.0.0.1:8000/) - Your website\n- [`http://127.0.0.1:8000/wordpress/wp-admin`](http://127.0.0.1:8000/wordpress/wp-admin) - The dashboard\n\n## Configuration\n\n### Public Directory\n\nAfter installing WordPlate, you'll need to configure your web server's document or web root to be the `public` directory. This is where the main entry point for your application, `index.php`, is located.\n\nBy setting the `public` directory as your web server's document root, you ensure that all HTTP requests are routed through the front controller, which handles the requests and returns the appropriate responses.\n\nThis configuration helps to improve the security and performance of your application by preventing direct access to files outside of the `public` directory.\n\n### Environment Configuration\n\nWordPlate makes it easy to manage different configuration values based on the environment where your application is running. For example, you may need to use a different database locally than you do on your production server.\n\nTo accomplish this, WordPlate uses the [`vlucas/phpdotenv`](https://github.com/vlucas/phpdotenv) PHP package. When you install WordPlate, a `.env.example` file is included in the root directory of your application. If you installed WordPlate via Composer, this file will automatically be renamed to `.env`. Otherwise, you should rename the file manually.\n\nIt's important to note that your `.env` file should not be committed to your application's source control. This is because each developer or server using your application may require a different environment configuration. Additionally, committing your `.env` file to source control would be a security risk in the event that an intruder gains access to your repository, as any sensitive credentials would be exposed.\n\nTo learn more about managing environment variables in WordPlate, you can refer to Laravel's documentation on the topic:\n\n- [Environment Variable Types](https://laravel.com/docs/11.x/configuration#environment-variable-types)\n- [Retrieving Environment Configuration](https://laravel.com/docs/11.x/configuration#retrieving-environment-configuration)\n\n### Salt Keys\n\nIt's important to add salt keys to your environment file. These keys are used to encrypt sensitive data, such as user sessions, and help to ensure the security of your application.\n\nIf you don't set the salt keys, your user sessions and other encrypted data may be vulnerable to attacks. To make it easier to generate secure salt keys, we've created a [salt key generator](https://vinkla.github.io/salts/) that you can use. If you haven't already done so, copy the `.env.example` file to a new file named `.env`. Then visit the generator and copy the randomly generated keys to your `.env` file.\n\n## Plugins\n\n### WordPress Packagist\n\nWordPlate includes integration with [WordPress Packagist](https://wpackagist.org), a Composer repository that mirrors the WordPress plugin and theme directories. With this integration, you can install and manage plugins using Composer.\n\nTo install a plugin, use `wpackagist-plugin` as the vendor name and the plugin slug as the package name. For example, to install the `clean-image-filenames` plugin, you would use the following command:\n\n```bash\ncomposer require wpackagist-plugin/clean-image-filenames\n```\n\nThe installed packages will be located in the `public/plugins` directory.\n\nHere's an example of what your `composer.json` file might look like:\n\n```json\n\"require\": {\n    \"wpackagist-plugin/clean-image-filenames\": \"^1.5\"\n}\n```\n\nFor more information and examples, please visit the [WordPress Packagist website](https://wpackagist.org).\n\n### Must Use Plugins\n\n[Must-use plugins](https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/) (also known as mu-plugins) are a type of WordPress plugin that is installed in a special directory inside the content folder. These plugins are automatically enabled on all sites in the WordPress installation.\n\nTo install plugins into the `mu-plugins` directory, add the plugin name to the `installer-paths` of your `composer.json` file:\n\n```json\n\"installer-paths\": {\n    \"public/mu-plugins/{$name}\": [\n        \"type:wordpress-muplugin\",\n        \"wpackagist-plugin/clean-image-filenames\",\n    ]\n}\n```\n\nTo install the plugin, use `wpackagist-plugin` as the vendor name and the plugin slug as the package name:\n\n```sh\ncomposer require wpackagist-plugin/clean-image-filenames\n```\n\nThe plugin will be installed in the `public/mu-plugins` directory.\n\nFor more information on the must-use plugin autoloader, please refer to the [Bedrock documentation](https://roots.io/bedrock/docs/mu-plugin-autoloader/).\n\n### Included Plugins\n\n#### [Headache](https://github.com/vinkla/headache)\n\nAn easy-to-swallow painkiller plugin for WordPress. It removes a lot of default WordPress stuff you just can't wait to get rid of. It removes meta tags such as feeds, version numbers and emojis.\n\n#### [Clean Image Filenames](https://wordpress.org/plugins/clean-image-filenames/)\n\nThe plugin automatically converts language accent characters in filenames when uploading to the media library. Characters are converted into browser and server friendly, non-accent characters.\n\n- `Räksmörgås.jpg` → `raksmorgas.jpg`\n- `Æblegrød_FTW!.gif` → `aeblegrod-ftw.gif`\n- `Château de Ferrières.png` → `chateau-de-ferrieres.png`\n\n## Vite.js\n\n[Vite](https://vitejs.dev/) is a build tool that provides a faster and leaner development experience for modern web projects. It comes with sensible defaults and is highly extensible via its Plugin and JavaScript APIs with full typing support.\n\n```sh\n# Start the dev server...\nnpm run dev\n\n# Build for production...\nnpm run build\n```\n\n[Learn more about Vite's backend integration.](https://vitejs.dev/guide/backend-integration.html)\n\n## Mail\n\nTo set up custom SMTP credentials for sending emails in your WordPlate application, you need to configure the required environment variables in your `.env` file.\n\n```env\nMAIL_HOST=127.0.0.1\nMAIL_PORT=2525\nMAIL_USERNAME=null\nMAIL_PASSWORD=null\nMAIL_ENCRYPTION=null\nMAIL_FROM_ADDRESS=\"hello@example.com\"\nMAIL_FROM_NAME=\"Example\"\n```\n\nIf you're using a local email service like Mailhog or Mailpit, you need to disable encryption by setting the `MAIL_ENCRYPTION` environment variable to `null`.\n\n## FAQ\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I add WordPress constants to the environment file?\u003c/strong\u003e\u003c/summary\u003e\n\nThis is possible by updating the `public/wp-config.php` file after the WordPlate application have been created.\n\n```diff\ndefine('WP_DISABLE_FATAL_ERROR_HANDLER', env('WP_DISABLE_FATAL_ERROR_HANDLER', false));\n\n+define('WP_ALLOW_MULTISITE', env('WP_ALLOW_MULTISITE', true));\n````\n\nThen you may add the constant to the `.env` file.\n\n```diff\nWP_DEFAULT_THEME=wordplate\n+WP_ALLOW_MULTISITE=true\n````\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I disable WP-Cron and set up a manual cron job?\u003c/strong\u003e\u003c/summary\u003e\n\nWordPlate allows you to disable the internal WordPress cron system via the `DISABLE_WP_CRON` environment variable:\n\n```env\nDISABLE_WP_CRON=true\n````\n\nIt is recommended to manually set a cron job if you enable this setting and disable the WordPress cron. You'll need to add the following in your crontab file:\n\n```sh\n*/5 * * * * curl https://example.com/wp/wp-cron.php\n````\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I install languages with Composer?\u003c/strong\u003e\u003c/summary\u003e\n\nIf you want to install language packs using Composer, we recommend looking at the [WP Languages](https://wp-languages.github.io/) project. Below is an example of a `composer.json` file that installs the Swedish language pack for WordPress.\n\n```json\n{\n    \"require\": {\n        \"koodimonni-language/core-sv_se\": \"*\",\n    },\n    \"repositories\": [\n        {\n            \"type\": \"composer\",\n            \"url\": \"https://wp-languages.github.io\",\n            \"only\": [\n                \"koodimonni-language/*\"\n            ]\n        }\n    ],\n    \"config\": {\n        \"allow-plugins\": {\n            \"koodimonni/composer-dropin-installer\": true\n        },\n    },\n    \"extra\": {\n        \"dropin-paths\": {\n            \"public/languages/\": [\n                \"vendor:koodimonni-language\"\n            ]\n        }\n    }\n}\n```\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I rename the public directory?\u003c/strong\u003e\u003c/summary\u003e\n\nUpdate your `.gitignore`, `composer.json`, `.vite.config.js`, and `wp-cli.yml` files with the new path to the `public` directory. Then, run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I rename the WordPress directory?\u003c/strong\u003e\u003c/summary\u003e\n\nBy default WordPlate will put the WordPress in `public/wordpress`. If you want to change this there are a couple of steps you need to go through. Let's say you want to change the default WordPress location to `public/wp`:\n\n1. Update the `wordpress-install-dir` path in your `composer.json` file.\n\n1. Update `wordpress` to `wp` in `wordplate/public/.gitignore`.\n\n1. Update the last line in the `public/index.php` file to:\n    \n    ```php\n    require __DIR__.'/wp/wp-blog-header.php';\n    ```\n    \n1. Update the `WP_DIR` environment variable in the `.env` file to `wp`.\n\n1. If you're using WP-CLI, update the path in the `wp-cli.yml` file to `public/wp`.\n\n1. Remove the `public/wordpress` directory if it exist and then run `composer update`.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I rename the theme directory?\u003c/strong\u003e\u003c/summary\u003e\n\nFor most applications you may leave the theme directory as it is. If you want to rename the `wordplate` theme to something else you'll also need to update the `WP_DEFAULT_THEME` environment variable in the `.env` file.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I use WordPlate with Laravel Herd or Valet?\u003c/strong\u003e\u003c/summary\u003e\n\nIf you're using Laravel Herd or Valet together with WordPlate, you may use our [custom driver](https://laravel.com/docs/11.x/valet#custom-valet-drivers):\n\n```php\n\u003c?php\n\nnamespace Valet\\Drivers\\Custom;\n\nuse Valet\\Drivers\\BasicValetDriver;\n\nclass WordPlateValetDriver extends BasicValetDriver\n{\n    public function serves(string $sitePath, string $siteName, string $uri): bool\n    {\n        return is_dir($sitePath . '/public/wordpress');\n    }\n\n    public function isStaticFile(string $sitePath, string $siteName, string $url)\n    {\n        $staticFilePath = $sitePath . '/public' . $url;\n\n        if ($this-\u003eisActualFile($staticFilePath)) {\n            return $staticFilePath;\n        }\n\n        return false;\n    }\n\n    public function frontControllerPath(string $sitePath, string $siteName, string $uri): ?string\n    {\n        return parent::frontControllerPath(\n            $sitePath . '/public',\n            $siteName,\n            $this-\u003eforceTrailingSlash($uri)\n        );\n    }\n\n    private function forceTrailingSlash(string $uri)\n    {\n        if (substr($uri, -1 * strlen('/wordpress/wp-admin')) === '/wordpress/wp-admin') {\n            header('Location: ' . $uri . '/');\n            exit;\n        }\n\n        return $uri;\n    }\n\n    public function logFilesPaths()\n    {\n        return [\n            '/public',\n        ];\n    }\n}\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eCan I use WordPlate with Tinkerwell?\u003c/strong\u003e\u003c/summary\u003e\n\nIf you're using Tinkerwell together with WordPlate, you may use our [custom driver](https://tinkerwell.app/docs/4/extending-tinkerwell/custom-drivers):\n\n```php\n\u003c?php\n\nfinal class WordPlateTinkerwellDriver extends WordpressTinkerwellDriver\n{\n    public function canBootstrap($projectPath)\n    {\n        return file_exists($projectPath . '/public/wordpress/wp-load.php');\n    }\n\n    public function bootstrap($projectPath)\n    {\n        require $projectPath . '/public/wordpress/wp-load.php';\n    }\n\n    public function appVersion()\n    {\n        return 'WordPlate ' . get_bloginfo('version');\n    }\n}\n```\n\u003c/details\u003e\n\n## Upgrade Guide\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 11 to 12\u003c/strong\u003e\u003c/summary\u003e\n\n1. The `wordplate/framework` package has been archived. Update the `composer.json` file:\n\n    ```diff\n    \"require\": {\n    -   \"wordplate/framework\": \"^11.1\",\n    +   \"composer/installers\": \"^2.1\",\n    +   \"johnpbloch/wordpress-core-installer\": \"^2.0\",\n    +   \"johnpbloch/wordpress-core\": \"^6.0\",\n    +   \"roots/bedrock-autoloader\": \"^1.0\",\n    +   \"roots/wp-password-bcrypt\": \"^1.1\",\n    +   \"symfony/http-foundation\": \"^6.0\",\n    +   \"symfony/var-dumper\": \"^6.0\",\n    +   \"vlucas/phpdotenv\": \"^5.4\"\n    }\n    ```\n\n1. Replace your `public/wp-config.php` file with [the one in this repository](public/wp-config.php). Remember to save any custom constants defined in your `wp-config.php` file.\n\n1. Add the [`src/helpers.php`](src/helpers.php) file from this repository and autoload it in the `composer.json` file:\n\n    ```diff\n    +\"autoload\": {\n    +    \"files\": [\n    +        \"src/helpers.php\"\n    +    ]\n    +}\n    ```\n\n1. Run `composer update` in the root of your project.\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 10 to 11\u003c/strong\u003e\u003c/summary\u003e\n\n1. WordPlate now requires PHP 8.0 or later.\n\n1. Bump the version number in the `composer.json` file to `^11.0`.\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 9 to 10\u003c/strong\u003e\u003c/summary\u003e\n\n1. WordPlate now requires PHP 7.4 or later.\n\n1. Bump the version number in the `composer.json` file to `^10.0`.\n\n1. Rename `WP_ENV` to `WP_ENVIRONMENT_TYPE` in the environment file.\n\n1. Rename `WP_THEME` to `WP_DEFAULT_THEME` in the environment file.\n\n1. Rename `WP_URL` to `WP_HOME` in the environment file (if it exists).\n\n1. If you're using the `WP_CACHE` environment variable you'll need to define it in the `public/wp-config.php` file:\n\n    ```diff\n    $application-\u003erun();\n\n    +define('WP_CACHE', env('WP_CACHE', false));\n\n    $table_prefix = env('DB_TABLE_PREFIX', 'wp_');\n    ````\n\n1. Optional: Rename `WP_PREFIX` to `DB_TABLE_PREFIX` in the following files:\n\n    - `.env`\n    - `.env.example`\n    - `public/wp-config.php`\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 8 to 9\u003c/strong\u003e\u003c/summary\u003e\n\n1. Bump the version number in the `composer.json` file to `^9.0`.\n\n1. Copy the `public/mu-plugins/mu-plugins.php` file into your project.\n\n1. Update the `public/.gitignore` file to allow the new `mu-plugins.php` file:\n\n    ```diff\n    -mu-plugins/\n    +mu-plugins/*\n    +!mu-plugins/mu-plugins.php\n    ````\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 7 to 8\u003c/strong\u003e\u003c/summary\u003e\n\n1. WordPlate now requires PHP 7.2 or later.\n\n1. Bump the version number in the `composer.json` file to `^8.0`.\n\n   \u003e [!Note]  \n   \u003e WordPlate 8.0 requires WordPress 5.3 or later.\n\n1. Laravel's helper functions is now optional in WordPlate. If you want to use the functions, install the [`laravel/helpers`](https://github.com/laravel/helpers#readme) package, with Composer, in the root of your project:\n\n   ```sh\n   composer require laravel/helpers\n   ```\n\n1. Laravel's collections are now optional in WordPlate. If you want to use collections, install the [`tightenco/collect`](https://github.com/tightenco/collect#readme) package, with Composer, in the root of your project:\n\n   ```sh\n   composer require tightenco/collect\n   ```\n\n1. The `mix` helper function is now optional in WordPlate. If you want to use the function, install the [`ibox/mix-function`](https://github.com/juanem1/mix-function#readme) package, with Composer, in the root of your project:\n\n   ```sh\n   composer require ibox/mix-function\n   ```\n\n1. Replace any usage of `asset`, `stylesheet_url` and `template_url` functions with WordPress's [`get_theme_file_uri`](https://developer.wordpress.org/reference/functions/get_theme_file_uri/) function.\n\n1. Replace any usage of `stylesheet_path` and `template_path` functions with WordPress's [`get_theme_file_path`](https://developer.wordpress.org/reference/functions/get_theme_file_path/) function .\n\n1. The `base_path` and `template_slug` functions have been removed.\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 6 to 7\u003c/strong\u003e\u003c/summary\u003e\n\n1. Bump the version number in the `composer.json` file to `^7.0`.\n\n   \u003e [!Note]  \n   \u003e WordPlate 7.0 requires WordPress 5.0 or later.\n\n1. Update the `realpath(__DIR__)` to `realpath(__DIR__.'/../')` in the `wp-config.php` file.\n\n1. If your public directory isn't named `public`, add the following line to the `wp-config.php` file:\n\n   ```php\n   $application-\u003esetPublicPath(realpath(__DIR__));\n   ```\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 5 to 6\u003c/strong\u003e\u003c/summary\u003e\n\n1. Bump the version number in the `composer.json` file to `^6.0`.\n\n1. Update the `realpath(__DIR__.'/../')` to `realpath(__DIR__)` in the `wp-config.php` file.\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eUpgrading from 4 to 5\u003c/strong\u003e\u003c/summary\u003e\n\n1. Bump the version number in the `composer.json` file to `^5.0`.\n\n1. Copy and paste the contents of the [`wp-config.php`](https://github.com/vinkla/wordplate/blob/e301f9b093efdbd1bdeeb61e2f99f86e23c36fb2/public/wp-config.php) file into your application.\n\n   \u003e [!Note]  \n   \u003e Make sure you don't overwrite any of your custom constants.\n\n1. Run `composer update` in the root of your project.\n\u003c/details\u003e\n\n## Acknowledgements\n\nWordPlate wouldn't be possible without these amazing open-source projects.\n\n- [`composer/installers`](https://github.com/composer/installers)\n- [`motdotla/dotenv`](https://github.com/motdotla/dotenv)\n- [`outlandish/wpackagist`](https://github.com/outlandishideas/wpackagist)\n- [`roots/bedrock-autoloader`](https://github.com/roots/bedrock-autoloader)\n- [`roots/wordpress`](https://github.com/roots/wordpress)\n- [`roots/wp-password-bcrypt`](https://github.com/roots/wp-password-bcrypt)\n- [`symfony/http-foundation`](https://github.com/symfony/http-foundation)\n- [`symfony/var-dumper`](https://github.com/symfony/var-dumper)\n- [`tailwindlabs/tailwindcss`](https://github.com/tailwindlabs/tailwindcss)\n- [`upperdog/clean-image-filenames`](https://github.com/upperdog/clean-image-filenames)\n- [`vinkla/headache`](https://github.com/vinkla/headache)\n- [`vitejs/vite`](https://github.com/vitejs/vite)\n- [`vlucas/phpdotenv`](https://github.com/vlucas/phpdotenv)\n\n## License\n\nThe WordPlate package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":["Credits","PHP","成品软件","Repository app"],"sub_categories":["CMS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordplate%2Fwordplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwordplate%2Fwordplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwordplate%2Fwordplate/lists"}