/**
 * Delete entries after Gravity Forms submission
 *
 * Removes the entry from the database once all notifications and add-ons
 * have finished processing. Prevents storing potentially sensitive form
 * data longer than necessary.
 *
 * To limit deletion to specific forms, add their IDs to the array below.
 * An empty array means ALL form entries will be deleted.
 *
 * @param array $entry The entry that was created
 * @param array $form  The form object
 */
add_action('gform_after_submission', 'fx_delete_entry_after_submission', 99, 2);
function fx_delete_entry_after_submission($entry, $form) {
    $target_form_ids = [1, 3, 7, 8];

    if (!empty($target_form_ids) && !in_array((int) $form['id'], $target_form_ids, true)) {
        return;
    }

    if (class_exists('GFAPI') && rgar($entry, 'id')) {
        GFAPI::delete_entry((int) $entry['id']);
    }
}<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//www.sanctuary.net/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://www.sanctuary.net/post-sitemap.xml</loc>
		<lastmod>2026-04-19T23:51:59+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.sanctuary.net/page-sitemap.xml</loc>
		<lastmod>2026-04-17T16:37:20+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://www.sanctuary.net/team_member-sitemap.xml</loc>
		<lastmod>2026-04-19T23:49:44+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->