https://github.com/horttcore/wordpress-custom-post-type-boilerplate
https://github.com/horttcore/wordpress-custom-post-type-boilerplate
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/horttcore/wordpress-custom-post-type-boilerplate
- Owner: Horttcore
- Created: 2020-01-10T16:08:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-14T07:54:55.000Z (over 5 years ago)
- Last Synced: 2025-03-05T09:45:38.061Z (about 2 months ago)
- Language: PHP
- Size: 230 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress Custom Post Type Boilerplate
A WordPress Custom Post Type Boilerplate
## Installation
`composer create-project ralfhortt/wordpress-custom-post-type-boilerplate my-post-type`
## Setup
- `npm install` or `yarn`
- Edit the plugin header in `plugin.php`
- Replace namespace `RalfHortt/WordPressCustomPostTypeBoilerplate` with your own
- Update autoloader namespace in `composer.json`
- Replace textdomain `wordpress-custom-post-type-boilerplate` with your own## Usage
### PHP
- Services: Add a custom service in `src`
- Function: Add custom function in `inc/functions.php`
- Template Tags: Add custom template tags in `inc/template-tags.php`### Gutenberg
- `npm run watch` for development
- Add custom blocks in `assets/js/blocks`
- `npm run production` for published code## ToDo
- Setup script
- Listing blocks
- View files## Changelog
### 0.1 - 2020-01-09
- Initial release