• Is there a list of “shortcodes” (not sure if thats the term for it) that i can use in the multisite / network Welcome Emails and First Page / Post settings? I see the defaults use SITE_NAME and BLOG_URL; but wondering if there are others, or the ability to create some if there are no more.
    Specifically, I’d like to include the SUBSITE_NAME and SUBSITE_URL. So the default First Post would read something like “We are pleased to announce the creation of SUBSITE_NAME, brought to you by SITE_NAME.”
    Is this possible?
    Thanks!

    • This topic was modified 4 years, 2 months ago by raysnalley. Reason: screenshot

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Sorry for the late reply. I’d call them “placeholders” but I don’t think there’s an “official” name. Definitely not shortcodes even though there is a strong similarity.

    All that works in email is listed in the highlighted code here: https://core.trac.www.ads-software.com/browser/tags/5.5.1/src/wp-includes/ms-functions.php?marks=1750-1753#L1736

    You can use the ‘update_welcome_user_email’ filter to implement additional functionality.

    I’m not sure what else might work for the first post or page. However, you can setup anything you like for a new site through the ‘wp_initialize_site’ action hook. With a later priority argument, the default first post/page should already exist in the DB, it could be altered or overwritten through this action hook.

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite / Network Settings: New Site Settings’ is closed to new replies.