wc_get_screen_ids()
Get all WooCommerce screen ids.
Description Description
Return Return
(array)
Source Source
File: includes/admin/wc-admin-functions.php
function wc_get_screen_ids() { $wc_screen_id = sanitize_title( __( 'WooCommerce', 'woocommerce' ) ); $screen_ids = array( 'toplevel_page_' . $wc_screen_id, $wc_screen_id . '_page_wc-reports', $wc_screen_id . '_page_wc-shipping', $wc_screen_id . '_page_wc-settings', $wc_screen_id . '_page_wc-status', $wc_screen_id . '_page_wc-addons', 'toplevel_page_wc-reports', 'product_page_product_attributes', 'product_page_product_exporter', 'product_page_product_importer', 'edit-product', 'product', 'edit-shop_coupon', 'shop_coupon', 'edit-product_cat', 'edit-product_tag', 'profile', 'user-edit', ); foreach ( wc_get_order_types() as $type ) { $screen_ids[] = $type; $screen_ids[] = 'edit-' . $type; } $attributes = wc_get_attribute_taxonomies(); if ( $attributes ) { foreach ( $attributes as $attribute ) { $screen_ids[] = 'edit-' . wc_attribute_taxonomy_name( $attribute->attribute_name ); } } return apply_filters( 'woocommerce_screen_ids', $screen_ids ); }