Plugin Options not saving options and doesn’t work
You aren’t returning data from the sanitize function: function kns_sanitize_options( $input ) { $input[‘option1’] = sanitize_text_field( $input[‘option1’] ); $input[‘option2’] = sanitize_text_field( $input[‘option2’] ); } There is therefore nothing to save. Try: function kns_sanitize_options( $input ) { $input[‘option1’] = sanitize_text_field( $input[‘option1’] ); $input[‘option2’] = sanitize_text_field( $input[‘option2′] ); return $input; } Secondly, you’ve registered the name of … Read more