Combine two filters on a single call

Is it possible to combine the two filters?

add_filter( ‘manage_edit-post_columns’, function($columns) {
$columns[‘author’] = ‘User’;
return $columns;
});

add_filter( ‘manage_edit-recipe_columns’, function($columns) {
$columns[‘author’] = ‘User’;
return $columns;
});

I want to make the ‘author’ column rename to all pages with posts and I don’t want to apply it to every single custom post type that I have.

Read more here:: Combine two filters on a single call

Leave a Reply

Your email address will not be published. Required fields are marked *