Filter hook 'quick_edit_enabled_for_taxonomy'

in WP Core File wp-admin/includes/class-wp-terms-list-table.php at line 503

View Source

quick_edit_enabled_for_taxonomy

Filter Hook
Description
Filters whether Quick Edit should be enabled for the given taxonomy.

Hook Information

File Location wp-admin/includes/class-wp-terms-list-table.php View on GitHub
Hook Type Filter
Line Number 503

Hook Parameters

Type Name Description
bool $enable Whether to enable the Quick Edit functionality. Default true.
string $taxonomy Taxonomy name.

Usage Examples

Basic Usage
<?php
// Hook into quick_edit_enabled_for_taxonomy
add_filter('quick_edit_enabled_for_taxonomy', 'my_custom_filter', 10, 2);

function my_custom_filter($enable, $taxonomy) {
    // Your custom filtering logic here
    return $enable;
}

Source Code Context

wp-admin/includes/class-wp-terms-list-table.php:503 - How this hook is used in WordPress core
<?php
 498  			 * @since 6.4.0
 499  			 *
 500  			 * @param bool   $enable   Whether to enable the Quick Edit functionality. Default true.
 501  			 * @param string $taxonomy Taxonomy name.
 502  			 */
 503  			$quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy );
 504  
 505  			if ( $quick_edit_enabled ) {
 506  				$actions['inline hide-if-no-js'] = sprintf(
 507  					'<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
 508  					/* translators: %s: Taxonomy term name. */

PHP Documentation

<?php
/**
			 * Filters whether Quick Edit should be enabled for the given taxonomy.
			 *
			 * @since 6.4.0
			 *
			 * @param bool   $enable   Whether to enable the Quick Edit functionality. Default true.
			 * @param string $taxonomy Taxonomy name.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/class-wp-terms-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.