Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Playing with the new do_accordion_sections
<?php
add_action( 'edit_form_after_editor', 'testing_accordion_section' );
function testing_accordion_section() {
$screen = get_current_screen();
do_accordion_sections( $screen, 'normal', get_post() );
$page = $screen->id;
global $wp_meta_boxes;
$wp_meta_boxes[$page]['normal'] = array();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment