The filter cac/post_types filters the post types for which Admin Columns is active. By default, Admin Columns includes all post types that are visible in the admin UI (show_ui) and not marked as a built-in post type (_builtin), plus post and page.

Usage

/**
 * Filter the post types for which Admin Columns is active
 *
 * @param array $post_types List of active post type names
 */
function my_cac_post_types( $post_types ) {

    // Possibly modify $post_types

    return $post_types;
}
add_filter( 'cac/post_types', 'my_cac_post_types' );

Example

This example disables Admin Columns for the default “post” post type.

/**
 * Example: disable admin columns for the default "post" posttype
 *
 * @param array $post_types List of active post type names
 */
function my_cac_post_types_disable_post( $post_types ) {

    if ( isset( $post_types['post'] ) ) {
        unset( $post_types['post'] );
    }

    return $post_types;
}
add_filter( 'cac/post_types', 'my_cac_post_types_disable_post' );