Skip to content

trendwerk/post-type-archive-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post type archive settings

Settings for post type archives. Made for WordPress.

This plugin uses post types to edit the actual archive settings. This will allow you to easily extend archives with all features available for post types.

Installation

composer require trendwerk/post-type-archive-settings

Usage

Add the post type support 'archive-settings' to any post type.

'supports' => array( 'title', 'editor', 'revisions', 'archive-settings' )

API

get_archive_settings( $post_type )

$post_type Name of the post type.

Extending

If you'd like to extend the archives post type, it's registered under the post type name _post_type_archives.