I am trying to load the script in one my custom made submenu pages in wordpress admin, it works well for the main menu pages like:
http://www.mydomain.com/wp/wp-admin/edit.php?post_type=product
but not for a submenu page:
http://www.mydomain.com/wp/wp-admin/edit.php?post_type=product&page=my-products
function pw_load_scripts($hook) {
if( $hook != 'edit.php' ) // load in edit page only
return;