Filter hook 'hidden_meta_boxes'

in WP Core File wp-admin/includes/screen.php at line 194

View Source

hidden_meta_boxes

Filter Hook
Description
Filters the list of hidden meta boxes.

Hook Information

File Location wp-admin/includes/screen.php View on GitHub
Hook Type Filter
Line Number 194

Hook Parameters

Type Name Description
string[] $hidden An array of IDs of hidden meta boxes.
WP_Screen $screen WP_Screen object of the current screen.
bool $use_defaults Whether to show the default meta boxes. Default true.

Usage Examples

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

function my_custom_filter($hidden, $screen, $use_defaults) {
    // Your custom filtering logic here
    return $hidden;
}

Source Code Context

wp-admin/includes/screen.php:194 - How this hook is used in WordPress core
<?php
 189  	 * @param string[]  $hidden       An array of IDs of hidden meta boxes.
 190  	 * @param WP_Screen $screen       WP_Screen object of the current screen.
 191  	 * @param bool      $use_defaults Whether to show the default meta boxes.
 192  	 *                                Default true.
 193  	 */
 194  	return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
 195  }
 196  
 197  /**
 198   * Register and configure an admin screen option
 199   *

PHP Documentation

<?php
/**
	 * Filters the list of hidden meta boxes.
	 *
	 * @since 3.3.0
	 *
	 * @param string[]  $hidden       An array of IDs of hidden meta boxes.
	 * @param WP_Screen $screen       WP_Screen object of the current screen.
	 * @param bool      $use_defaults Whether to show the default meta boxes.
	 *                                Default true.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-admin/includes/screen.php
Related Hooks

Related hooks will be displayed here in future updates.