Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable comments #230

Open
ccorda opened this issue Jul 21, 2022 · 1 comment
Open

Disable comments #230

ccorda opened this issue Jul 21, 2022 · 1 comment

Comments

@ccorda
Copy link
Contributor

ccorda commented Jul 21, 2022

Let's move to their own file, and make sure we're hiding from posts/page lists as well:

function remove_posts_columns($columns) {
    unset($columns['comments']);
    return $columns;
}
add_filter('manage_posts_columns', 'remove_posts_columns', 10, 2);

function remove_pages_count_columns($defaults) {
    unset($defaults['comments']);
    return $defaults;
}
add_filter('manage_pages_columns', 'remove_pages_count_columns');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant