esc_html__('Number of items per page', 'simple-tags'), 'default' => 20, 'option' => 'st_post_tags_per_page' ]; add_screen_option($option, $args); $this->terms_table = new PostTags_List(); } /** * Method for build the page HTML manage tags * * @return void * @author Olatechpro */ public function page_manage_posttags() { // Default order if (!isset($_GET['order'])) { $_GET['order'] = 'name-asc'; } settings_errors(__CLASS__); if (!isset($_GET['add'])) { //all tax ?>

' . esc_html__('Search results for “%s”', 'simple-tags') . '', esc_html($search)); } ?> terms_table->prepare_items(); ?>
terms_table->search_box(esc_html__('Search Terms for Current Post', 'simple-tags'), 'term'); ?>
terms_table->display(); //Display the table ?>

taxopress_manage_posttags(); echo '
'; } } ?>
0 && apply_filters( 'taxopress_post_tags_create_limit', true )) { $post_tags_limit = true; } $ui = new taxopress_admin_ui(); ?>

' . esc_html__( 'Shortcode: ', 'simple-tags' ); ?>  

:

  • %tag_link%
  • %tag_name%
  • %tag_rel% (it creates rel="tag")
  • %tag_feed%
  • %tag_id%
  • %tag_name_attribute%
  • %tag_description% –
  • %tag_size% –
  • %tag_color% –



__('Security check failed.', 'simple-tags')]); } if (!current_user_can('simple_tags')) { wp_send_json_error(['message' => __('Permission denied.', 'simple-tags')]); } $post_id = isset($_POST['preview_post_id']) ? intval($_POST['preview_post_id']) : 0; if (!$post_id) { wp_send_json_error([ 'html' => '

' . esc_html__('Select a post to see a preview.', 'simple-tags') . '

' ]); } // Get current settings $settings = isset($_POST['taxopress_post_tags']) ? wp_unslash($_POST['taxopress_post_tags']) : []; $args = [ 'before' => isset($settings['before']) ? wp_kses_post($settings['before']) : '', 'separator' => isset($settings['separator']) ? sanitize_text_field($settings['separator']) : ', ', 'after' => isset($settings['after']) ? wp_kses_post($settings['after']) : '', 'post_id' => $post_id, 'inc_cats' => isset($settings['inc_cats']) ? (int)$settings['inc_cats'] : 0, 'xformat' => isset($settings['xformat']) ? wp_kses_post($settings['xformat']) : '', 'notagtext' => isset($settings['notagtext']) ? wp_kses_post($settings['notagtext']) : '', 'number' => isset($settings['number']) ? (int)$settings['number'] : 0, 'ID' => isset($settings['ID']) ? (bool)$settings['ID'] : false, 'taxonomy' => isset($settings['taxonomy']) ? sanitize_text_field($settings['taxonomy']) : false, 'hide_output' => isset($settings['hide_output']) ? (int)$settings['hide_output'] : 0, 'wrap_class' => isset($settings['wrap_class']) ? sanitize_html_class($settings['wrap_class']) : '', 'link_class' => isset($settings['link_class']) ? sanitize_html_class($settings['link_class']) : '', 'hide_terms' => isset($settings['hide_terms']) ? (int)$settings['hide_terms'] : 0, 'format' => isset($settings['format']) ? sanitize_text_field($settings['format']) : 'flat', 'smallest' => isset($settings['smallest']) ? (int)$settings['smallest'] : 12, 'largest' => isset($settings['largest']) ? (int)$settings['largest'] : 12, 'unit' => isset($settings['unit']) ? sanitize_text_field($settings['unit']) : 'pt', 'color' => isset($settings['color']) ? (int)$settings['color'] : true, 'mincolor' => isset($settings['mincolor']) ? sanitize_hex_color($settings['mincolor']) : '#353535', 'maxcolor' => isset($settings['maxcolor']) ? sanitize_hex_color($settings['maxcolor']) : '#000000', 'selectionby' => isset($settings['selectionby']) ? sanitize_text_field($settings['selectionby']) : 'count', 'selection' => isset($settings['selection']) ? sanitize_text_field($settings['selection']) : 'desc', 'orderby' => isset($settings['orderby']) ? sanitize_text_field($settings['orderby']) : 'name', 'order' => isset($settings['order']) ? sanitize_text_field($settings['order']) : 'asc', 'limit_days' => isset($settings['limit_days']) ? (int)$settings['limit_days'] : 0, ]; $output = SimpleTags_Client_PostTags::extendedPostTags($args, false); if (empty($output)) { if (!empty($settings['hide_output'])) { wp_send_json_success(['html' => '']); } $notagtext = !empty($settings['notagtext']) ? $settings['notagtext'] : __('No terms found for this post.', 'simple-tags'); wp_send_json_success(['html' => '
' . esc_html($notagtext) . '
']); return; } wp_send_json_success(['html' => $output]); } }