Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Runtime configuration for the FAQ custom post type.
<?php
/**
* Runtime configuration for the FAQ custom post type.
*
* @package KnowTheCode\Module\FAQ\Custom
* @since 1.0.0
* @author hellofromTonya
* @link https://KnowTheCode.io
* @license GNU-2.0+
*/
namespace KnowTheCode\Module\FAQ\Custom;
return array(
'post_type' => 'faq',
'labels' => array(
'post_type' => 'faq',
'singular_label' => 'FAQ',
'plural_label' => 'FAQs',
'text_domain' => FAQ_MODULE_TEXT_DOMAIN,
),
'features' => array(
'base_post_type' => 'post',
'exclude' => array(
'excerpt',
'comments',
'trackbacks',
'custom-fields',
// 'thumbnail',
),
'additional' => array(
'page-attributes',
),
),
'args' => array(
'description' => 'Frequently Asked Questions (FAQ)',
'label' => __( 'FAQs', FAQ_MODULE_TEXT_DOMAIN ),
'labels' => '', // automatically generate the labels.
'public' => true,
'supports' => '', // automatically generate the support features.
'menu_icon' => 'dashicons-editor-help',
'has_archive' => true,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment