kermage / themeplate
A toolkit to handle everything related in developing a full-featured WordPress theme.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 1
Type:wordpress-plugin
Requires
- php: ^5.6|^7.0|^8.0
- ext-json: *
- kermage/external-update-manager: ^2.1
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.1
- phpcompatibility/phpcompatibility-wp: ^2.1
- phpstan/phpstan: ^0.12.99
- phpunit/phpunit: ^5.7.27
- squizlabs/php_codesniffer: ^3.5
- wp-coding-standards/wpcs: ^2.2
README
"A toolkit to handle everything related in developing a full-featured WordPress site"
- Add meta boxes to posts, terms, users, and menu items
- Register custom post types and custom taxonomies
- Create options pages and add custom admin columns
- Frontend markup cleaner with a clean navwalker
Features
- Fully compatible with the new block editor: Gutenberg
- Work similarly to native WordPress function/methods
- Look seamlessly beautiful to WordPress pages/panels
- Easy, simple, and straightforward as much as possible
Getting Started
1. Install the toolkit
2. Add to theme's functions.php
or plugin's main php file
if ( class_exists( 'ThemePlate' ) ) : ThemePlate( array( 'title' => 'Project Name', 'key' => 'project_prefix' ) ); require_once 'post-types.php'; require_once 'settings.php'; require_once 'meta-boxes.php'; endif;
- Initialize with an array consisting of a title and a key to be used as:
- page and menu title in the pre-created options page
- prefix to the registered option names and in every meta key
- Require files containing the definition of
ThemePlate-d
items
3. Define items to be ThemePlate-d
ThemePlate()->post_type( $args );
ThemePlate()->taxonomy( $args );
ThemePlate()->settings( $args );
ThemePlate()->post_meta( $args );
ThemePlate()->term_meta( $args );
ThemePlate()->user_meta( $args );
ThemePlate()->menu_meta( $args );
ThemePlate()->page( $args );
ThemePlate()->column( $args );
See the Wiki section
Yeoman Generator
Check generator-themeplate to kickstart a ThemePlate powered WP site.