有一个名为get_user_option_meta-box-order_{$page}
哪里$page
是帖子类型的名称。只要确保submitdiv
是数组中的最后一个值:
add_filter( \'get_user_option_meta-box-order_post\', \'wpse25793_one_column_for_all\' );
function wpse25793_one_column_for_all( $order )
{
return array(
\'normal\' => join( ",", array(
\'postexcerpt\',
\'formatdiv\',
\'trackbacksdiv\',
\'tagsdiv-post_tag\',
\'categorydiv\',
\'postimagediv\',
\'postcustom\',
\'commentstatusdiv\',
\'slugdiv\',
\'authordiv\',
\'submitdiv\',
) ),
\'side\' => \'\',
\'advanced\' => \'\',
);
}