kunoichi / theme-resource-sharing
A utility tool for sharing theme resources.
Installs: 1 763
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^5.6|^7.0
- symfony/filesystem: ^3.4
This package is auto-updated.
Last update: 2024-12-09 23:27:20 UTC
README
Sharing resources in your theme directory.
Installation
composer require kunoichi/theme-resource-sharing
How to Use
This composer library add CLI to your WordPress installation.
Import/Export contents from the resource folder in your theme(default themes/your-theme/resource
) and you can share your settings among development team.
// In your theme's functions.php
//
Kunoichi\ThemeResourceSharing::enable( 'data' );
Now run commands below whenever you like.
Export
wp theme-resource export
This command will export your WordPress settings below:
- Database. Deafautl name is
wordpress.sql
. - Uploads directry.
Import
wp theme-resource import --site_url=https://example.com
This command will import all of data from your soruce folder.
In case someone uses https://example.local
but others use 'http://localhost:8888', specifiy --site_url
to change imported data.
Notice
- This command is intened to use inside private repository. Be careful on public repo. It may cause Identity Flaud.
- Do not deploy
resources
directory to public space!