List Out WP Inventory Manager Pages
Are you in need of determining exactly what pages WP Inventory Manager is on within your site? Here is how!
This filter returns the list of admin page names that are consider WP Inventory Pages. Adding pages to this list will ensure that the styles and scripts are added to the page in the Admin dashboard.
apply_filters('wpim_admin_pages', self::$pages);
Useful when combined with the wpim_admin_menu action when writing an add-on to the plugin, and you are adding an admin page.
add_filter('wpim_admin_pages', 'my_custom_function'); function my_custom_function($pages) { $pages[] = 'my_admin_menu_slug'; return $pages; }