in an example of the Settings API, there's an input and the callback function to sanitize/validate the result from this input :
this is the input :
echo "<input id='text_string' name='boj_myplugin_options[text_string]' type='text' value='$text_string' />";
and this is the callback function :
function boj_myplugin_validate_options( $input ) {
$valid['text_string'] = preg_replace( '/[^a-zA-Z]/', '', $input['text_string'] );
i read that this function is passed the $_POST data as a parameter, but what does text_string stand for here : $input['text_string'] ?
i'm a bit confused, it should be the name parameter, but the name parameter seems to be a plain text : name='boj_myplugin_options[text_string]'
Thanks for your answer