"hidden_meta_boxes" Filter Does Not Work When Gutenberg and Classic Editors are Active #9596
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Feature] Meta Boxes
A draggable box shown on the post editing screen
Needs Testing
Needs further testing to be confirmed.
[Status] Needs More Info
Follow-up required in order to be actionable.
[Type] Bug
An existing feature does not function as intended
Describe the bug
When the Gutenberg and Classic editor plugins are active, the "hidden_meta_boxes" filter does not hide any meta boxes.
To Reproduce
Steps to reproduce the behavior:
function on_hidden_meta_boxes($hidden, $screen, $use_defaults){
if($screen->id == 'asset'){
$hidden[] = 'commentstatusdiv';
$hidden[] = 'commentsdiv';
$hidden[] = 'page-links-to';
$hidden[] = 'pageparentdiv';
}
}
Expected behavior
Should hide the hidden set of metaboxes and un-check the Screen Options for those boxes.
Desktop (please complete the following information):
Additional context
Gutenberg Version 3.7.0
Classic Editor Version 0.4
The text was updated successfully, but these errors were encountered: