checkbox_label = $this->get_item_label(); $this->set_label( '' ); $this->set_item_hide_icon( true ); if ( isset( $args->checkbox_value_on ) ) { $this->checkbox_on = $args->checkbox_value_on; } } /** * Overwrite method */ protected function show_item() { if ( 'new' === $this->show_context_action ) { $checked = $this->checkbox_on === $this->item_default_value ? 'checked' : ''; $this->item_value = $this->checkbox_on === $this->item_default_value ? $this->checkbox_on : ''; } else { $checked = $this->checkbox_on === $this->item_value ? 'checked' : ''; } ?>