Combine two filters into a single call

Is it possible to combine 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 rename the ‘author’ column on all pages with posts; but I don’t want to apply it to every single custom post type.

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

Leave a Reply

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