add_action('admin_init','load_admin_datapicker_script'); function load_admin_datapicker_script() { global $pagenow, $typenow; if (empty($typenow) && !empty($_GET['post'])) { $post = get_post($_GET['post']); $typenow = $post->post_type; }
add_action('admin_init','load_admin_datapicker_script'); function load_admin_datapicker_script() { global $pagenow, $typenow; if (empty($typenow) && !empty($_GET['post'])) { $post = get_post($_GET['post']); $typenow = $post->post_type; }