Skip to content

An example of a WordPress Custom Post Type designed for easy inclusion in a Roots/Bedrock project.

Notifications You must be signed in to change notification settings

edflips/roots-example-cpt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roots and Sage Friendly Example Custom Post Type Plugin using PostTypes

An example WordPress custom post type as a plugin using the fantastic PostTypes.

Designed for easy-inclusion with Roots Bedrock, but easily used in any WordPress project.

If you want to adapt this for your own work

  • Update composer.json to change the name of the plugin and the PSR-4 autoload namespace
  • Update the plugin block and namespace in plugin.php, and the namespace in app/init.php
  • Update all instances of EXAMPLECPT_PLUGIN_DIR and EXAMPLECPT_PLUGIN_URL
  • Run composer update to regenerate the autoload files
  • Rename and update app/types/example.php to fit your needs

Add the plugin to your WordPress plugins or mu-plugins directory, or include it as a Composer dependency in your Bedrock project.

About

An example of a WordPress Custom Post Type designed for easy inclusion in a Roots/Bedrock project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%