function jkbanners_create_banner_post_type() { $postType = new PostType(); $postType->name = 'jkbanner'; $postType->urlSlug = 'banner'; $postType->labelPlural = 'Banners'; $postType->labelSingular = 'Banner'; $postType->excerptTitle = 'URL'; $postType->excerptHelp = 'URL directed to when clicked'; $postType->iconCSSContent = '\\f116'; $postType->create(); }
function jksnippets_create_snippet_post_type() { $postType = new PostType(); $postType->name = 'jksnippet'; $postType->urlSlug = 'snippet'; $postType->labelPlural = 'Snippets'; $postType->labelSingular = 'Snippet'; $postType->iconCSSContent = '\\f475'; $postType->supports = array('title', 'page-attributes'); $postType->addCustomField(['label' => 'Snippet', 'name' => 'snippet', 'type' => 'textarea', 'sanitize' => 'none']); $postType->create(); }
function jkcomics_create_comic_post_type() { $postType = new PostType(); $postType->name = 'jkcomic'; $postType->urlSlug = 'comic'; $postType->labelPlural = 'Comics'; $postType->labelSingular = 'Comic'; $postType->excerptTitle = 'Description'; $postType->excerptHelp = 'Comic Alt Text / Description'; $postType->iconCSSContent = '\\f161'; $postType->supports = array('title', 'editor', 'thumbnail', 'page-attributes'); $postType->create(); }