Umístění metaboxu před editor

Dnešní snippet umožní posunout metabox, který jste vytvořili před TinyMce editor.  Do functions.php, nebo pluginu vložíte následující kód: function positioning_metaboxes() { global $post; if ( get_post_type($post) == ‚post‘) { ?> jQuery(‚#normal-sortables‘).insertBefore(‚#postdivrich‘); <?php } } add_action( 'admin_footer', 'positioning_metaboxes' );

Obsah článku

Přidejte záhlaví a začněte generovat tabulku obsahu

Dnešní snippet umožní posunout metabox, který jste vytvořili před TinyMce editor. 

Do functions.php, nebo pluginu vložíte následující kód:

function positioning_metaboxes() {
global $post;
if ( get_post_type($post) == 'post') {
?>

jQuery('#normal-sortables').insertBefore('#postdivrich');

<?php
}
}
add_action( 'admin_footer', 'positioning_metaboxes' );