O botão de edição WP_List_Table não funciona

Minha function wp_list_table está abaixo. O botão Editar não funciona. Alguém pode me dizer o que está errado?

public static function get_customers( $per_page = 5, $page_number = 1 ) { global $wpdb; $sql = "SELECT * FROM {$wpdb->prefix}pasla"; if ( ! empty( $_REQUEST['orderby'] ) ) { $sql .= ' ORDER BY ' . esc_sql( $_REQUEST['orderby'] ); $sql .= ! empty( $_REQUEST['order'] ) ? ' ' . esc_sql( $_REQUEST['order'] ) : ' ASC'; } $sql .= " LIMIT $per_page"; $sql .= ' OFFSET ' . ( $page_number - 1 ) * $per_page; $result = $wpdb->get_results( $sql, 'ARRAY_A' ); return $result; } /** * Delete a customer record. * * @param int $id customer id */ public static function delete_customer( $id ) { global $wpdb; $wpdb->delete( "{$wpdb->prefix}pasla", [ 'id' => $id ], [ '%d' ] ); } /** * Returns the count of records in the database. * * @return null|string */ public static function record_count() { global $wpdb; $sql = "SELECT COUNT(*) FROM {$wpdb->prefix}pasla"; return $wpdb->get_var( $sql ); } /** Text displayed when no customer data is available */ public function no_items() { _e( 'Herhangi bir pasla işlemi bulunamadı.', 'sp' ); } /** * Render a column when no column specific method exist. * * @param array $item * @param string $column_name * * @return mixed */ public function column_default( $item, $column_name ) { switch ( $column_name ) { case 'ad_soyad': case 'paslanan_marka': case 'telefon': case 'pasla_tarih': case 'sehir': case 'paslayan': case 'sonuc': return $item[ $column_name ]; default: return print_r( $item, true ); //Show the whole array for troubleshooting purposes } } /** * Render the bulk edit checkbox * * @param array $item * * @return string */ function column_cb( $item ) { return sprintf( '', $item['id'] ); } /** * Method for name column * * @param array $item an array of DB data * * @return string */ function column_ad_soyad( $item ) { $delete_nonce = wp_create_nonce( 'sp_delete_customer' ); $title = '' . $item['ad_soyad'] . ''; $actions = [ 'edit' => sprintf('Edit',$_REQUEST['page'],'edit',$item['id']), 'delete' => sprintf( 'Kaldır', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['id'] ), $delete_nonce ) ]; return sprintf('%1$s %2$s', $item['ad_soyad'], $this->row_actions($actions) ); } /** * Associative array of columns * * @return array */ function get_columns() { $columns = [ 'cb' => '', 'ad_soyad' => __( 'Ad Soyad', 'sp' ), 'paslanan_marka' => __( 'Marka', 'sp' ), 'telefon' => __( 'Telefon', 'sp' ), 'sehir' => __( 'İl & İlçe', 'sp' ), 'pasla_tarih' => __( 'Tarih', 'sp' ), 'paslayan' => __( 'Paslayan', 'sp' ), 'sonuc' => __( 'Sonuç', 'sp' ), ]; return $columns; } /** * Columns to make sortable. * * @return array */ public function get_sortable_columns() { $sortable_columns = array( 'ad_soyad' => array( 'ad_soyad', true ), 'parlanan_marka' => array( 'paslanan_marka', true ), 'telefon' => array( 'telefon', true ), 'sehir' => array( 'sehir', true ), 'paslayan' => array( 'paslayan', true ) ); return $sortable_columns; } /** * Returns an associative array containing the bulk action * * @return array */ public function get_bulk_actions() { $actions = [ 'bulk-delete' => 'Kaldır' ]; return $actions; } /** * Handles data query and filter, sorting, and pagination. */ public function prepare_items() { $this->_column_headers = $this->get_column_info(); /** Process bulk action */ $this->process_bulk_action(); $per_page = $this->get_items_per_page( 'customers_per_page', 5 ); $current_page = $this->get_pagenum(); $total_items = self::record_count(); $this->set_pagination_args( [ 'total_items' => $total_items, //WE have to calculate the total number of items 'per_page' => $per_page //WE have to determine how many items to show on a page ] ); $this->items = self::get_customers( $per_page, $current_page ); } public function process_bulk_action() { //Detect when a bulk action is being triggered... if ( 'delete' === $this->current_action() ) { // In our file that handles the request, verify the nonce. $nonce = esc_attr( $_REQUEST['_wpnonce'] ); $redirect_url = get_admin_url( null, 'admin.php?page=pasla_kazan_yonetim' ); if ( ! wp_verify_nonce( $nonce, 'sp_delete_customer' ) ) { die( 'Go get a life script kiddies' ); } else { self::delete_customer( absint( $_GET['pasla'] ) ); // esc_url_raw() is used to prevent converting ampersand in url to "#038;" // add_query_arg() return the current url wp_redirect( esc_url_raw(add_query_arg()) ); exit; } } // If the delete bulk action is triggered if ( ( isset( $_POST['action'] ) && $_POST['action'] == 'bulk-delete' ) || ( isset( $_POST['action2'] ) && $_POST['action2'] == 'bulk-delete' ) ) { $delete_ids = esc_sql( $_POST['bulk-delete'] ); // loop over the array of record ids and delete them foreach ( $delete_ids as $id ) { self::delete_customer( $id ); } // esc_url_raw() is used to prevent converting ampersand in url to "#038;" // add_query_arg() return the current url wp_redirect( esc_url_raw(add_query_arg()) ); exit; } } } class SP_Plugin { // class instance static $instance; // customer WP_List_Table object public $customers_obj; // class constructor public function __construct() { add_filter( 'set-screen-option', [ __CLASS__, 'set_screen' ], 10, 3 ); add_action( 'admin_menu', [ $this, 'plugin_menu' ] ); } public static function set_screen( $status, $option, $value ) { return $value; } public function plugin_menu() { $hook = add_menu_page( 'Pasla Kazan Yönetim Sistemi', 'Pasla İşlem Listesi', 'manage_options', 'pasla_kazan_yonetim', [ $this, 'plugin_settings_page' ] ); add_action( "load-$hook", [ $this, 'screen_option' ] ); } /** * Plugin settings page */ public function plugin_settings_page() { ?> 

Pasla Kazan İşlem Listesi

customers_obj->prepare_items(); $this->customers_obj->display(); ?>

'Pasla Sayısı', 'default' => 5, 'option' => 'customers_per_page' ]; add_screen_option( $option, $args ); $this->customers_obj = new Customers_List(); } /** Singleton instance */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; }

} add_action (‘plugins_loaded’, function () {SP_Plugin :: get_instance ();});

Solutions Collecting From Web of "O botão de edição WP_List_Table não funciona"