admin管理员组文章数量:1026989
I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default:
Than I add the following code:
add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );
function my_bulk_edit_custom_box( $column_name, $post_type ) {
?>
<fieldset class="inline-edit-col-right">
<label class="inline-edit-<?php echo $column_name; ?>">
<span class="title">Custom</span>
<select class="<?php echo $column_name; ?>" name="<?php echo $column_name; ?>">
<option value="-1"><?php _e( '— No Change —' ); ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</label>
</fieldset>
<?php
}
And the mystery is that form now looks like that:
The question is why field "Tags" jumps down? And is there is a way prevent tags input box from moving anywhere?
I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default:
Than I add the following code:
add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );
function my_bulk_edit_custom_box( $column_name, $post_type ) {
?>
<fieldset class="inline-edit-col-right">
<label class="inline-edit-<?php echo $column_name; ?>">
<span class="title">Custom</span>
<select class="<?php echo $column_name; ?>" name="<?php echo $column_name; ?>">
<option value="-1"><?php _e( '— No Change —' ); ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</label>
</fieldset>
<?php
}
And the mystery is that form now looks like that:
The question is why field "Tags" jumps down? And is there is a way prevent tags input box from moving anywhere?
本文标签: wp list tablebulkeditcustombox mess the input fields
版权声明:本文标题:wp list table - `bulk_edit_custom_box` mess the input fields 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745660538a2161862.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论