Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
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?

5 years, 3 months ago
Stefan van den Dungen Gronovius
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' );

5 years, 3 months ago
mikashv

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

Thks

5 years, 3 months ago
Tobias Schutter
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

5 years, 3 months 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;
5 years, 2 months ago

You must be logged in to reply to this topic.