Create a plugin for the mu-plugins directory and have your function run when the wpmu_new_blog action fires.
Reference, here: https://codex.wordpress.org/Plugin_API/Action_Reference/wpmu_new_blog
The hook you cited for ACF seems to be the way you ought to run you function, if you want that to happen upon ACF save…
Related Posts:
- Prevent “main” WPMU site_url() being returned in functions
- functions.php inject inline css
- Implementing DNS Prefetching with WordPress
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Different functions file for each site in multisite installation?
- Delete pages and Create default pages for all new network sites
- Multisite, either change the name of sample-page or create new page
- How to use max and min values of custom fields
- creating shortcode to pull json array
- Loop (iterate) through Multi-Site sub-sites (blogs)?
- Global functions on WPMU
- restore_current_blog required after switch_to_blog, if I use that in a function?
- Retrieve tags data in post body
- Having issues with a foreach inside of a shortcode with ACF gallery
- Get Current Post ID in functions php, meta query filter
- Conditional Gravity Forms filter in WordPress Multisite
- Multisite Ajax serialize return error [object Object]
- Creating new blog on multisite programatically without hacks?
- How to get correct URLs in network wide menu (Multisite)?
- Multisite 404 on pages – rewrite error breaks database
- Has is_archived() for sites in a multisite changed with WP 4.7?
- Redirect to another page using contact form 7? [closed]
- Function that outputs second theme url
- ACF not showing
- How to retrieve the values of a sub-field in the first and last row of an (ACF) repeater inside function?
- How can I modify the element on all pages?
- Add php code to wp_print_scripts?
- Access category within rss2_head hook?
- Can set_post_thumbnail be used to remove a thumbnail?
- Programmatically add Yoast meta description after post save
- Compare meta key to current date in pre get post
- dynamic site link for future migration in echo do_shortcode()
- Redirects based on a JSON file
- Using two loops in one WordPress template
- Insert a field with PREG_REPLACE – strange behaviour
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- functions.php return custom text
- Perform function on publish AND save (not just save)
- Dashboard blocker on network multisite for specific user roles
- Display ACF category image on archive and single template files
- Featured Image and Tags problem
- Override a Post’s URL with Advanced Custom Fields Function
- WordPress Function Assistance with Loop
- How to show ACF value under post/page title in wp-admin
- How to display an image before title text in menu items
- Members only function, but allow account activation [solved]
- Change Page Title
- Filter works on last selection but no others
- Adding a schema code to one specific page using functions.php file
- How to update an image attachment’s alt text from a custom field when saving a post?
- Help with with my function for wordpress
- Competing Login Redirects – Need to be Combined?
- ACF Date Form in Custom Admin Field
- Assign IDs to headings in ACF using functions.php
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- get_field() with ID in one signal filter not working
- Adding a class to the body of an inactive site using multisite
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Comment function for page
- ACF Filter return value
- Return ACF Field value function
- Providing fallback function and allow override by plugin
- Different body image backgrounds on different pages, posts and categories
- update_post_meta not working in function
- Run function from parent on child site
- does acf_save_post cause endless loop?
- Syntax for a function in order to get post’s title in JSON encoded response [closed]
- Why wp_ajax hooks doesn’t work?
- Call ACF data from functions.php [closed]
- How can I json_encode the output of my function?
- Ads Only at one website inside multisite network – code error
- Different ads on every website on multisite environment
- Update post meta with wp cron
- How to get variable from other function inside class function using add_action for Ajax call
- Linking thumbnail to full size image
- Functions.php reverted to new one
- Get page slug and assign a variable within functions.php
- Custom roles can’t access to wp-admin
- How to insert a text in all pages and posts before or after specific places?
- Add class or ID to any WordPress function
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Change Admin Bar “Visit Site” URL
- exclude a category from a search on a specific page
- Possible to display shortcode based on the category?
- Overwriting Parent Theme’s Image Sizes
- Publishing just a Facebook URL without full code snippet
- Filter an WordPress Function in (general-template.php)
- The correct way to add a JavaScript in the functions.php [closed]
- How to remove some item from WordPress Dashboard for user Author
- Disabling Author Page only for subscribers
- Showing user profile data on front-end
- How to register a menu based on a ACF condition
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- How to Override Page Template if URL matches query?
- how to remove a tag in the_category function
- Database Query not working
- How to use WP_rewrite?
- Wp get archive only text not link
- can not call functions in function.php
- How to add more than one menu for logged in members?