helpful_admin_columns_post_types

Allows to filter the admin columns afterwards, so that columns can be shown in the admin area even if a desired post type is not selected in Helpful settings.

Example for your functions.php:

/**
 * @param array $post_types
 * @return array
 */
add_filter('helpful_admin_columns_post_types', function (array $post_types) {
    $post_types[] = 'my_post_type';
    return $post_types;
});

Was this post helpful?

Top