Metabox Data not saving

I tried your code and it saved the custom fields just fine. The issue is that esc_attr returns a string but does not echo it out. Try this instead: <p>Date: <input type=”text” name=”getextra_mbe_date” value=”<?php echo esc_attr( $getextra_mbe_date); ?>” /></p> <p>Time: <input type=”text” name=”getextra_mbe_time” value=”<?php echo esc_attr( $getextra_mbe_time); ?>” /> </p>

How to set the default options on an existing plugin in a WP MU new user install

At the top of the api.php page before the class JSON_API line add the following code: add_action( ‘wpmu_new_blog’, ‘wpse_set_defaults’ ); function wpse_set_defaults( $blog_id ) { global $json_api; switch_to_blog( $blog_id ); // set the default controllers here $required_controllers = explode(“,”, “categories,posts,user,attachments”); $id = ‘json_api_controllers’; $available_controllers = $json_api->get_controllers(); $active_controllers = explode(‘,’, get_option($id, ‘core’)); $action = “activate”; foreach … Read more