Skip to content

Instantly share code, notes, and snippets.

@MZAWeb
Created August 18, 2013 10:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MZAWeb/6261003 to your computer and use it in GitHub Desktop.
Save MZAWeb/6261003 to your computer and use it in GitHub Desktop.
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