settings = $settings; } /** * Render the tab. * * @return void */ public function render(): void { $notice = get_transient( 'aiou_import_export_notice_' . get_current_user_id() ); delete_transient( 'aiou_import_export_notice_' . get_current_user_id() ); // Free's own Settings screen first, then any add-on's page. $groups = array( __( 'Settings', 'all-in-one-utilities' ) => array() ); foreach ( $this->settings->get_tabs() as $tab_id => $tab ) { $group = 'default' === $tab['page'] ? __( 'Settings', 'all-in-one-utilities' ) : ( 'woo' === $tab['page'] ? __( 'WooCommerce', 'all-in-one-utilities' ) : ucwords( (string) $tab['page'] ) ); $groups[ $group ][ $tab_id ] = $tab['label']; } $groups = array_filter( $groups ); ?>