Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the community forum?
All Topics
Olli

Disable "Bulk editing"

I can’t disable Bulk editing. There is no setting for that. How can I disable Admin Columns plugin Bulk editing?

2 months, 2 weeks ago
Stefan
Developer

To disable bulk editing completely, you can use the following hook/snippet in your theme/codebase.

add_filter( 'acp/editing/bulk/active', '__return_false' );

2 months, 1 week ago
mikashv

Hi !
Is it possible to disable only some columns bulk edit fuctionnality ?

Thks

1 month, 3 weeks ago
Tobias
Developer

Yes, you can also disable bulk editing for a specific column based on its type or name.

This is the filter you want to use: acp/editing/bulk-edit-active.

On GitHub we have a repository with examples for all our filters. We just added two examples on how to use acp/editing/bulk-edit-active: https://github.com/codepress/acp-tweaks/blob/master/classes/Filter/Editing.php

1 month, 2 weeks ago
Olli

Thank you Stefan for your reply. Works nicely when added to themes functions.php.

Thank you Tobias for the direct link to Github for more tweaks.

For someone else wondering how to use this hook maybe this is the proper way:

/**
 * https://codex.wordpress.org/Function_Reference/is_plugin_active
 * Detect plugin. For use on Front End only.
 */
include_once( ABSPATH . 'wp-admin/includes/plugin.php');

// Check if plugin active
if(is_plugin_active('admin-columns-pro/admin-columns-pro.php')):
	//plugin is activated
	/**
	* Disable "Bulk editing"
	*/
	add_filter( 'acp/editing/bulk/active', '__return_false' );

	/**
	* Disable "Export"
	*/
	add_filter( 'acp/export/is_active', '__return_false' );
endif;
1 month, 2 weeks ago

You must be logged in to reply to this topic.