我想在wordpress管理中隐藏我的自定义页面上出现的1/2列单选按钮,我应该怎么做?(好的,我可以用javascript来做,我要求一个本地的wordpress解决方案)
这就是我说的那个收音机

下面是页面的标记
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo $title; ?></h2>
<div id="poststuff">
<form method="post" action="" enctype="multipart/form-data">
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
<?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
<div >
<div class="column-1-ai1ec timely">
<?php do_meta_boxes( $settings_page, 'left', null ); ?>
<?php
// Show the submit button only in the settings page and not in the Feeds page.
if ( $calendar_settings ) {
submit_button( esc_attr__( 'Update Settings', AI1EC_PLUGIN_NAME ), 'primary', 'ai1ec_save_settings' );
}
?>
</div>
<div class="column-2-ai1ec timely"><?php do_meta_boxes( $settings_page, 'right', null ); ?></div>
</div>
</form>
</div><!-- #poststuff -->
发布于 2012-11-16 05:21:19
过滤器!也就是说,对于screen_layout_columns和get_user_option_screen_layout_post。一定会喜欢那些写得不好的钩子。
试试这个:
function force_single_column_layout( $columns ) {
$columns['post'] = 1;
return $columns;
}
add_filter( 'screen_layout_columns', 'force_single_column_layout' );
function force_single_column_layout_post() {
return 1;
}
add_filter( 'get_user_option_screen_layout_post', 'force_single_column_layout_post' );https://stackoverflow.com/questions/13406169
复制相似问题