Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically provision pilot events #901

Closed
iandunn opened this issue Jun 16, 2023 · 1 comment
Closed

Automatically provision pilot events #901

iandunn opened this issue Jun 16, 2023 · 1 comment

Comments

@iandunn
Copy link
Member

iandunn commented Jun 16, 2023

Broken off of #885

Just like with the wordcamp post type, we'll want a button in for the pilot events post type (#900) that will automatically provision a new site, except it'll be on the events.wordpress.org network.

We'll probably want some of the things from wordcamp-new-site.php, like the permalinks:

/*
* Avoids URLs like `narnia.wordcamp.org/2020/2010/06/04/foo`. See `redirect_date_permalinks_to_post_slug()`.
*
* If ths ever changes, the link in `stubs/page/sponsors.php may need to be updated.
*/
$wp_rewrite->set_permalink_structure( '/%postname%/' );
delete_option( 'rewrite_rules' ); // Delete because can't be flushed during `switch_to_blog()`.

@iandunn
Copy link
Member Author

iandunn commented Jul 26, 2023

Done in 3ea133d and a6fc8bc

@iandunn iandunn closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants