Skip to content

Instantly share code, notes, and snippets.

View Bot12313's full-sized avatar
🏠
Working from home

Артем Bot12313

🏠
Working from home
View GitHub Profile
@Bot12313
Bot12313 / custom_post_types.php
Created September 2, 2019 15:53 — forked from Kelderic/custom_post_types.php
This is set of helper classes to create and manage custom post types for WordPress. It gets added to a theme's logic folder, or libs or includes folders, and included in functions.php. Then the primary tracker class is initiated once, and used to create new CTPs.
<?php
/***********************************************************************/
/*************************** TRACKER CLASS ***************************/
/***********************************************************************/
if ( ! class_exists( 'Custom_Post_Types_Manager' ) ) {
class Custom_Post_Types_Manager {