{"repo":"jjgrainger/PostTypes","free":true,"listed":false,"github":"https://github.com/jjgrainger/PostTypes","clone":"git clone https://github.com/jjgrainger/PostTypes.git","description":"Modern PHP abstractions for WordPress post types and taxonomies.","language":"PHP","stars":374,"topics":["wordpress","post-type","posttype","taxonomies","wp","custom-post-types"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"PostTypes v3.0.1 Modern PHP abstractions for WordPress post types and taxonomies. Migrating from v2 to v3 Important : v3.0 is a breaking release. Existing v2 post type and taxonomy definitions will not work without modification. Please review the migration guide in the documentation on how to upgrade to version 3. Requirements PHP =8.1 Composer WordPress =6.3 Installation Install with composer Run the following in your terminal to install PostTypes with Composer. PostTypes uses PSR-4 autoloading and can be used with the Composer's autoloader. See Composer's basic usage guide for details on working with Composer and autoloading. Basic Usage Create a custom post type Custom post types are defined as classes that extend the base PostType class. At a minimum, the name method must be implemented to define the post type slug. All other methods are optional and allow you to configure labels, options, taxonomies, admin columns, filters, and more as needed. Register a custom post type Once the custom post type class is created it can be registered to WordPress by instantiating and call the register method. Notes The full documentation can be found online at posttypes.jjgrainger.co.uk Licensed under the MIT License Maintained under the Semantic Versioning Guide Author Joe Grainger https://jjgrainger.co.uk https://twitter.com/jjgrainger","default_branch":null,"files":null,"tree":[],"storefront":"/r/jjgrainger","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jjgrainger/PostTypes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}