*/ class TitleColumn extends ModelColumn { protected $sortColumn = 'title'; /** * @since 2.24.0 * * @inheritDoc */ public static function getId(): string { return 'title'; } /** * @since 2.24.0 * * @inheritDoc */ public function getLabel(): string { return __('Name', 'give'); } /** * @since 3.22.0 Add locale support * @since 3.0.0 remove html tags from title * @since 2.24.0 * * @inheritDoc * * @param DonationForm $model */ public function getCellValue($model): string { return sprintf( '%s', add_query_arg(['locale' => Language::getLocale()], get_edit_post_link($model->id)), esc_attr($model->title), wp_strip_all_tags($model->title) ); } }