Filter: tcp get saleable post types

Description

Filters the saleable post types array. It’s useful to add Post Types to the list of saleables post types.
The filter ‘tcp_get_saleable_post_types’ could be used by plugins to its own saleables post types

Usage

<?php add_filter( 'tcp_get_saleable_post_types', 'my_tcp_get_saleable_post_types' ); ?>

Examples

<?php
function my_tcp_get_saleable_post_types( $saleable_post_types ) {
	$saleable_post_types[] = 'my_post_type';
	return $saleable_post_types;
}
add_filter( 'tcp_get_saleable_post_types', 'my_tcp_get_saleable_post_types' ); ?>

Change Log

Since 1.0.9

Related

tcp_get_saleable_post_types | tcp_is_saleable_post_type | tcp_is_saleable_taxonomy