ファンクション
// カテゴリ->カスタムフィールド->公開 に毎回並び替える
function my_footer() {
echo '<script type="text/javascript">
//<![CDATA[
jQuery(function(){
jQuery("#normal-sortables").prepend(jQuery("#tagsdiv-post_tag"));
jQuery("#normal-sortables").prepend(jQuery("#postimagediv"));
jQuery("#submitdiv").appendTo(jQuery("#normal-sortables"));
});
//]]>
</script>';
}
add_action('admin_footer', 'my_footer');
prepend 要素内の先頭に つまり先に処理したものから後の挿入処理により一個さがる2個目になる
http://semooh.jp/jquery/api/manipulation/prepend/content/
appendTo 要素内の末尾に
http://semooh.jp/jquery/api/manipulation/appendTo/content/
記録
https://ja.forums.wordpress.org/topic/3063 参考
// カテゴリ->カスタムフィールド->公開 に毎回並び替える
function my_footer2() {
echo '<script type="text/javascript">
//<![CDATA[
jQuery(function(){
//jQuery("#cfs_input_929").appendTo(jQuery("#normal-sortables"));
//jQuery("#normal-sortables").prepend(jQuery("#side-sortables").children("#categorydiv"));
//jQuery("#normal-sortables").append(jQuery("#side-sortables").children("#submitdiv"));
//jQuery("#categorydiv").prependTo(jQuery("#normal-sortables"));
});
//]]>
</script>';
}
add_action('admin_footer', 'my_footer2');