Filter hook 'default_hidden_meta_boxes'

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

View Source

default_hidden_meta_boxes

Filter Hook
Description
Filters the default list of hidden meta boxes.

Hook Information

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

Hook Parameters

Type Name Description
string[] $hidden An array of IDs of meta boxes hidden by default.
WP_Screen $screen WP_Screen object of the current screen.

Usage Examples

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

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

Source Code Context

wp-admin/includes/screen.php:181 - How this hook is used in WordPress core
<?php
 176  		 * @since 3.1.0
 177  		 *
 178  		 * @param string[]  $hidden An array of IDs of meta boxes hidden by default.
 179  		 * @param WP_Screen $screen WP_Screen object of the current screen.
 180  		 */
 181  		$hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen );
 182  	}
 183  
 184  	/**
 185  	 * Filters the list of hidden meta boxes.
 186  	 *

PHP Documentation

<?php
/**
		 * Filters the default list of hidden meta boxes.
		 *
		 * @since 3.1.0
		 *
		 * @param string[]  $hidden An array of IDs of meta boxes hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/screen.php
Related Hooks

Related hooks will be displayed here in future updates.