apply_filters( 'quick_edit_enabled_for_taxonomy', bool $enable, string $taxonomy )
- Since
- 6.4.0
Filters whether Quick Edit should be enabled for the given taxonomy.
Compatibility
- WordPress
- since 6.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$enablebool- Whether to enable the Quick Edit functionality. Default true.
$taxonomystring- Taxonomy name.
Where this hook fires · 2
wp-admin/includes/class-wp-terms-list-table.php:428WP_Terms_List_Table::column_name()wp-admin/includes/class-wp-terms-list-table.php:501WP_Terms_List_Table::handle_row_actions()
Source code
* * @since 6.4.0 * * @param bool $enable Whether to enable the Quick Edit functionality. Default true. * @param string $taxonomy Taxonomy name. */ $quick_edit_enabled = apply_filters( 'quick_edit_enabled_for_taxonomy', true, $taxonomy ); if ( $quick_edit_enabled ) { $actions['inline hide-if-no-js'] = sprintf( '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', /* translators: %s: Taxonomy term name. */ esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ),Changelog
Introduced in 6.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.