backstretch_type_support

Description

The settings page allows for the inclusion of posts and pages for customizations. This filter allows you to add support for custom post types, remove support for posts or pages, or a combination of both.

Usage

Adding support to existing types

function rkv_add_types( $types ) {

	$types[] = 'MY_POST_TYPE';

	return $types;
}
add_filter( 'backstretch_type_support', 'rkv_add_types' );

Restricting support to one type

function rkv_trim_types( $types ) {

	$items[] = 'MY_POST_TYPE';

	return $items;
}
add_filter( 'backstretch_type_support', 'rkv_trim_types' );

Restricting support to certain types

function rkv_partial_types( $types ) {

	$items[] = 'post';
	$items[] = 'MY_POST_TYPE';

	return $items;
}
add_filter( 'backstretch_type_support', 'rkv_partial_types' );