I have a form that looks as such:
<form action="options.php" method="post">
<ul class="nav nav-tabs">
<li>
<a href="#content" data-toggle="tab">content</a>
</li>
<li>
<a href="#contentversion2" data-toggle="tab">content version 2</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="content">
<div class="controls">
<input type="url" name="aisis_core[index_more_posts]" placeholder="Url" />
</div>
<div class="form-actions">
<input type="submit" value="Submit" />
</div>
</div>
<div class="tab-pane" id="contentversion2">
content for this tab as well
</div>
</div><input type="hidden" name="option_page" value="aisis_options" /><input type=
"hidden" name="action" value="update" /><input type="hidden" id="_wpnonce" name=
"_wpnonce" value="0360d57793" /><input type="hidden" name="_wp_http_referer" value=
"/wordpress/wp-admin/admin.php?page=aisis-core-options&settings-updated=true" />
</form>
The problem is, when I hit submit, the following options validator function is then called, based on the registered settings:
public function option_validator($input){
var_dump($input); exit;
$option = get_option('aitisis_core');
$option = $input;
update_option('success_message', true);
return $option;
}
The problem as you can see from the var dump is that the input is always null....no matter what I put into the url input.
I registered the setting as such:
public function settings(){
register_setting(
'aisis_options',
'aisis_options',
array(
$this,
'option_validator'
)
);
}
any tips?

