'all'), $atts)); ob_start(); anacxmlviewer_generatabella($id); $anacxmlshortcode = ob_get_clean(); return $anacxmlshortcode; } ); add_shortcode('wpgov-xmlviewer', function($atts) { extract(shortcode_atts(array('id' => 'all'), $atts)); ob_start(); anacxmlviewer_generatabella($id); $anacxmlshortcode = ob_get_clean(); return $anacxmlshortcode; } ); add_filter('user_can_richedit', function($default) { global $post; if ('anac-xml-view' == get_post_type($post)) { add_filter('quicktags_settings', 'anacxmlviewer_47010'); wp_deregister_script('postbox'); remove_action('media_buttons', 'media_buttons'); return false; } return $default; }); function anacxmlviewer_47010($qtInit) { $qtInit['buttons'] = 'fullscreen'; return $qtInit; } add_action('add_meta_boxes', function() { add_meta_box('anacxmlviewer_info', ' ', 'anacxmlviewer_metabox_callback', 'anac-xml-view', 'side', 'high'); }); function anacxmlviewer_metabox_callback ($post, $metabox) { global $post; echo '


© 2015-2018 Marco Milesi