Skip to content

Supports parameter for Custom Post Type Model

Carlos Moreira edited this page Jun 1, 2020 · 1 revision

Your model might contain the supports parameter.

This is an alias for the post_type_supports function from WordPress Core.

Full list of supported arguments.

Example:

return [
	'active'       => true,
	'type'         => 'cpt',
	'name'         => 'book',
	...
	'supports'     => [
		'title',
		'author',
		'excerpt',
		'editor',
		'page-attributes',
		'thumbnail',
		'post-formats',
	],
	...
];