Tuesday, 27 August 2013

Use Meta Box in Plugin of WordPress

Use Meta Box in Plugin of WordPress

Any one let me give an suggestion is much appreciated. I trying to create
a plugin in wordpress. I do this in WP_LIST_TABLE In this we have an
button add new option by this it get it into default metabox. If you are
create a new form then it display the whole with default values. I have
three fields like Disable this Plugin as Checkbox, Display options like
user level. I tried the default value as bb_member as 1 and bb_visitor as
1 both of them works perfect, if i uncheck anyone of them it again looks
checked when i save the data. If i leave it as empty in the array of
default something like
$default = array(
'id' => 0,
'disableinstances' => '',
'bb_member' => '',
'bb_visitor' => '',
);
then it works perfect for the add new option default value is unchecked. I
want it to be checked, If i uncheck of them it should save the data. How
can i do this. Here is the code link

No comments:

Post a Comment