Hi Sridhar,
You are right, before clicking the button Save Settings, the fields' value is not saved to the database so the helper function rwmb_meta()
always returns a null
value.
If you want to set the field kn_checkbox_kadence
checked as default, please try to use this code:
add_action( 'admin_init', function() {
if( get_option( 'kadence_navigator' ) !== null ) {
$options = array(
'kn_checkbox_kadence' => 1
);
update_option( 'kadence_navigator', $options );
}
} );