bulk_action_observer_ids
Filter HookDescription
Filters the array of field name attributes for bulk actions. }Hook Information
File Location |
wp-includes/script-loader.php
View on GitHub
|
Hook Type | Filter |
Line Number | 779 |
Hook Parameters
Type | Name | Description |
---|---|---|
array
|
$bulk_action_observer_ids
|
{ An array of field name attributes for bulk actions. |
Usage Examples
Basic Usage
<?php
// Hook into bulk_action_observer_ids
add_filter('bulk_action_observer_ids', 'my_custom_filter', 10, 1);
function my_custom_filter($bulk_action_observer_ids) {
// Your custom filtering logic here
return $bulk_action_observer_ids;
}
Source Code Context
wp-includes/script-loader.php:779
- How this hook is used in WordPress core
<?php
774 *
775 * @type string $bulk_action The bulk action field name. Default 'action'.
776 * @type string $changeit The new role field name. Default 'new_role'.
777 * }
778 */
779 apply_filters( 'bulk_action_observer_ids', $bulk_action_observer_ids )
780 );
781
782 $scripts->add( 'wp-sanitize', "/wp-includes/js/wp-sanitize$suffix.js", array(), false, 1 );
783
784 $scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", array(), '1.6.1', 1 );
PHP Documentation
<?php
/**
* Filters the array of field name attributes for bulk actions.
*
* @since 6.8.1
*
* @param array $bulk_action_observer_ids {
* An array of field name attributes for bulk actions.
*
* @type string $bulk_action The bulk action field name. Default 'action'.
* @type string $changeit The new role field name. Default 'new_role'.
* }
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/script-loader.php
Related Hooks
Related hooks will be displayed here in future updates.