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

Remove bulk actions for templates #35997

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/full-site-editing/templates-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function gutenberg_templates_lists_custom_columns( array $columns ) {
if ( isset( $columns['date'] ) ) {
unset( $columns['date'] );
}
unset( $columns['cb'] );
return $columns;
}

Expand Down Expand Up @@ -111,3 +112,13 @@ function gutenberg_filter_templates_edit_views( $views ) {

return $views;
}

/**
* Removes the bulk actions from the templates list view.
*
* @param array $actions The bulk actions to filter.
*/
function gutenberg_filter_templates_bulk_actions( $actions ) {
return array();
}
add_filter( 'bulk_actions-edit-wp_template', 'gutenberg_filter_templates_bulk_actions' );