How to output wp_enqueue_style() in HTML head instead of footer

hook into init action on your initial plugin function add_action(‘init’, array(__CLASS__, ‘your_function_within_class’)); and add the function public static function your_function_within_class() { wp_register_style(‘myfirstplugin-admin-css’, ‘/wp-content/plugins/myfirstplugin/assets/style.css’, false); wp_enqueue_style(‘myfirstplugin-admin-css’); } hope this help

How to save checkbox choice in wordpress

If I understood correctly, you are not able to save using update_post_meta. If this is you can try saving using jQuery using ajax, try this. //on change checkbox jQuery.ajax({ type: ‘POST’, url: “/wp-admin/admin-ajax.php?action=your_custom_function”, data:{ meta_id: ‘YOUR_META_ID’, //get user or post meta and set here meta_value: ‘YOUR_META_VALUE’ /the value you want to save in the meta … Read more