name])) { $AjaxyLiveSearch->set_templates($taxonomy->name, $_POST['sf_' . $taxonomy->name]); } $values = array( 'title' => sanitize_text_field($_POST['sf_title_' . $taxonomy->name] ?? ''), 'show' => sanitize_text_field($_POST['sf_show_' . $taxonomy->name] ?? ''), 'search_content' => sanitize_text_field($_POST['sf_search_content_' . $taxonomy->name] ?? ''), 'limit' => sanitize_text_field($_POST['sf_limit_' . $taxonomy->name] ?? ''), 'order' => sanitize_text_field($_POST['sf_order_' . $taxonomy->name], ''), 'excludes' => array_map('sanitize_text_field', $_POST['sf_exclude_' . $taxonomy->name] ?? []) ); if (!empty($_POST['sf_order_results_' . $taxonomy->name])) { $values['order_results'] = sanitize_text_field(trim($_POST['sf_order_results_' . $taxonomy->name])); } if (!empty($_POST['sf_ushow_' . $taxonomy->name])) { $values['ushow'] = sanitize_text_field(trim($_POST['sf_ushow_' . $taxonomy->name])); } $AjaxyLiveSearch->set_setting($taxonomy->name, $values); $message = esc_html__("Settings saved", "ajaxy-instant-search"); } else { $message = esc_html__("Settings have been already saved", "ajaxy-instant-search"); } } $setting = (array)$AjaxyLiveSearch->get_setting($taxonomy->name); $allowed_tags = array('term_id', 'name', 'slug', 'taxonomy', 'description', 'count', 'category_link'); /* translators: %s is replaced with the taxonomy label */ $title = esc_html(sprintf(__('Edit %s template & settings', "ajaxy-instant-search"), $taxonomy->label)); $notice = ''; ?>