esc_html__('Number of items per page', 'simple-tags'), 'default' => 20, 'option' => 'st_autoterms_logs_per_page' ]; $this->logs_table = new Autoterms_Logs(); }else{ $args = [ 'label' => esc_html__('Number of items per page', 'simple-tags'), 'default' => 20, 'option' => 'st_autoterms_per_page' ]; $this->terms_table = new Autoterms_List(); } add_screen_option($option, $args); } /** * Method for build the page HTML manage tags * * @return void * @author Olatechpro */ public function page_manage_autoterms() { // Default order if (!isset($_GET['order'])) { $_GET['order'] = 'name-asc'; } settings_errors(__CLASS__); if (isset($_GET['tab']) && $_GET['tab'] === 'logs') { //autoterms logs $delete_all_link = add_query_arg([ 'page' => 'st_autoterms', 'tab' => 'logs', 'action' => 'taxopress-delete-autoterm-logs', '_wpnonce' => wp_create_nonce('autoterm-action-request-nonce') ], admin_url('admin.php') ); $enable_log_link = add_query_arg([ 'page' => 'st_autoterms', 'tab' => 'logs', 'action' => 'taxopress-enable-autoterm-logs', '_wpnonce' => wp_create_nonce('autoterm-action-request-nonce') ], admin_url('admin.php') ); $disable_log_link = add_query_arg([ 'page' => 'st_autoterms', 'tab' => 'logs', 'action' => 'taxopress-disable-autoterm-logs', '_wpnonce' => wp_create_nonce('autoterm-action-request-nonce') ], admin_url('admin.php') ); ?>