isset( $_GET['updated'] ) ? sanitize_text_field( wp_unslash( $_GET['updated'] ) ) : '', 'deleted' => isset( $_GET['deleted'] ) ? sanitize_text_field( wp_unslash( $_GET['deleted'] ) ) : '', 'delete_blocked' => isset( $_GET['delete_blocked'] ) ? sanitize_text_field( wp_unslash( $_GET['delete_blocked'] ) ) : '', 'bulk_deleted' => isset( $_GET['bulk_deleted'] ) ? sanitize_text_field( wp_unslash( $_GET['bulk_deleted'] ) ) : '', 'bulk_skipped' => isset( $_GET['bulk_skipped'] ) ? sanitize_text_field( wp_unslash( $_GET['bulk_skipped'] ) ) : '', 'error' => isset( $_GET['error'] ) ? sanitize_text_field( wp_unslash( $_GET['error'] ) ) : '', ); // phpcs:enable WordPress.Security.NonceVerification.Recommended $is_edit = ! empty( $category->id ); $parent_opts = Torlann_Product_Categories::get_select_options( $is_edit ? (int) $category->id : 0 ); Torlann_Admin::page_header( '', array( 'hide_header' => true, ) ); ?>

' . esc_html__('Catalog → Attributes', 'torlann') . '' ); ?>

' . esc_html__('Settings → Design → Categories', 'torlann') . '' ); ?>

parent_id ) { $parent = $db->get( (int) $cat->parent_id ); $parent_name = $parent ? $parent->name : ''; } $count = $db->count_products( (int) $cat->id ); $can_delete = 0 === (int) $count; $locked_title = __('This category contains products and cannot be deleted.', 'torlann'); $edit_url = admin_url( 'admin.php?page=torlann-categories&edit=' . (int) $cat->id ); $del_url = wp_nonce_url( admin_url( 'admin.php?page=torlann-categories&action=delete&id=' . (int) $cat->id ), 'delete_category_' . (int) $cat->id ); ?>
title="" >
name ); ?>
slug ); ?>