array( 'name' => __('Stores'), 'singular_name' => __('Store'), 'add_new' => __('Add new Store '), 'all_items' => __('All Store '), 'add_new_item' => __('Add new Store '), 'edit_item' => __('Edit Store '), 'new_item' => __('New Store '), 'view_item' => __('View Store '), 'search_items' => __('Search Store '), 'not_found' => __('Store Name not '), 'not_found_in_trash' => __('Image map not found in trash') ), 'public' => true, 'menu_icon' => plugin_dir_url(__FILE__) . 'assets/images/imagemap_icon.png', 'exclude_from_search' => true, 'has_archive' => true, 'supports' => array( 'title' ) )); } //Add Meta box public function alim_add_meta_box(){ add_meta_box('location-location', __('Location', 'location'), array( $this, 'alim_html' ), 'office', 'normal', 'default'); } /* Create the metabox for Store */ public function alim_html($post){ wp_nonce_field('_location_nonce', 'location_nonce'); $countrys = include('countries.php'); wp_localize_script('my-ajax-request', 'MyAjax', array( 'ajaxurl' => admin_url('admin-ajax.php') )); wp_enqueue_script('imgmap_script', plugins_url('/assets/js/custom.js', __FILE__), array('jquery'), '', true); wp_enqueue_style('imgmap_style',plugins_url('/assets/css/imagemap.css', __FILE__)); ?>