viewCap(), 'give-donors', [$this, 'render'] ); } /** * Render admin page container * * @since 4.4.0 Add new details page view * @since 2.20.0 */ public function render() { if (self::isShowingDetailsPage()) { $donor = Donor::find(absint($_GET['id'])); if (! $donor) { wp_die(__('Donor not found', 'give'), 404); } give(LoadDonorDetailsAssets::class)(); } elseif (self::isShowing()) { give(LoadDonorsListTableAssets::class)(); } echo '
'; } /** * Display a button on the old donation forms table that switches to the React view * * @since 2.20.0 */ public function renderReactSwitch() { ?>