wc_admin_get_core_pages_to_connect()
Returns core WC pages to connect to WC-Admin.
Hooks from the function
Return
Array
.
Usage
wc_admin_get_core_pages_to_connect();
wc_admin_get_core_pages_to_connect() wc admin get core pages to connect code WC 9.4.2
function wc_admin_get_core_pages_to_connect() { $all_reports = WC_Admin_Reports::get_reports(); $report_tabs = array(); foreach ( $all_reports as $report_id => $report_data ) { $report_tabs[ $report_id ] = $report_data['title']; } return array( 'wc-addons' => array( 'title' => __( 'Extensions', 'woocommerce' ), 'tabs' => array(), ), 'wc-reports' => array( 'title' => __( 'Reports', 'woocommerce' ), 'tabs' => $report_tabs, ), 'wc-settings' => array( 'title' => __( 'Settings', 'woocommerce' ), 'tabs' => apply_filters( 'woocommerce_settings_tabs_array', array() ), // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment ), 'wc-status' => array( 'title' => __( 'Status', 'woocommerce' ), // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment 'tabs' => apply_filters( 'woocommerce_admin_status_tabs', array( 'status' => __( 'System status', 'woocommerce' ), 'tools' => __( 'Tools', 'woocommerce' ), 'logs' => __( 'Logs', 'woocommerce' ), ) ), ), ); }