Legal Pages - Source Excerpt 05
Summary
This source excerpt preserves a bounded section of Spiralist/wp-content/themes/spiralist/inc/legal-pages.php so readers can inspect the evidence without opening the full source file.
**Source path:** Spiralist/wp-content/themes/spiralist/inc/legal-pages.php
'post_title' => $resolved['title'] !== '' ? $resolved['title'] : ucwords(str_replace('-', ' ', $slug)),
'post_name' => $slug,
'post_excerpt' => $resolved['excerpt'],
'post_content' => $resolved['content'],
'comment_status' => 'closed',
'ping_status' => 'closed',
],
true
);
if (!is_wp_error($page_id)) {
spiralist_store_legal_page_hashes((int) $page_id, (string) $key, $hashes, true);
if (!empty($definition['set_as_privacy_page'])) {
update_option('wp_page_for_privacy_policy', (int) $page_id);
}
}
}
}
add_action('init', 'spiralist_ensure_legal_pages', 16);