Display_rows () und column_cb () seltsames Verhalten

Ich habe ein merkwürdiges Verhalten meiner functionen gefunden.

Ich dachte, die ID von display_rows() zu column_cb() , aber das Problem ist, dass das Programm nur die erste Ziffer passiert. Irgendein Hinweis?

column_cb() :

 function column_cb($item) { return sprintf('', $item['id']); } 

display_rows() :

 function display_rows() { $records = $this->items; list( $columns, $hidden ) = $this->get_column_info(); if(!empty($records)){ foreach($records as $rec) { echo 'id.'">'; foreach ( $columns as $column_name => $column_display_name ) { $class = "class='$column_name column-$column_name'"; $style = ""; if ( in_array( $column_name, $hidden ) ) $style = 'style="display:none;"'; $attributes = $class . $style; $editlink = '/wp-admin/link.php?action=edit&id='.(int)$rec->id; //Display the cell switch ( $column_name ) { case "cb": echo ''.$this->column_cb(stripslashes($rec->id)).''; break; case "col_name": echo ''.$this->column_title(stripslashes($rec->product_name_name)).''; break; } } echo''; } } } 

Dasselbe Problem tritt auf, wenn ich versuche, den column_title() an column_title() .

column_title() :

 function column_title($item){ $actions = array( 'edit' => sprintf('Edit',$_REQUEST['page'],'edit',$item['ID']), 'delete' => sprintf('Delete',$_REQUEST['page'],'delete',$item['ID']), ); //Return the title contents return sprintf('%1$s %3$s', /*$1%s*/ $item['product_name'], /*$2%s*/ $item['id'], /*$3%s*/ $this->row_actions($actions) ); } 

Solutions Collecting From Web of "Display_rows () und column_cb () seltsames Verhalten"