public function get_button_args($item_id, $action) { $args = parent::get_button_args($item_id, $action); $args['content'] = __('Delete', APP_TD); $args['class'] = "delete-listing button alert"; return $args; }
public function get_button_args($item_id, $action) { $args = parent::get_button_args($item_id, $action); if ('add' === $action) { $args['content'] = __('Favorite', APP_TD); $args['class'] = "fave-button fave-link button"; } elseif ('delete' === $action) { $args['content'] = __('Delete Favorite', APP_TD); $args['class'] = "fave-button unfave-link button"; } return $args; }