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
- warning: trying to access array offset on value of type bool ACF field image group
- Custom User Role not working
- Uploading images via ACF update_field function
- Adding code using functions.php in child theme
- Testing for a shortcode using a function. 404 page throwing PHP Notice
- WordPress Migration error phpupdate_option is not a function
- Passing global variable from header.php to functions.php
- Adding class to last list item? Not WP generated
- Custom Query Not Paginating
- Allowed memory size of 33554432 bytes exhausted (tried to allocate 9967617 bytes) in …\wp-includes\functions.php
- What happens to the text in functions.php file outside of the php enclosure?
- How to hide image-url if no attachment?
- wordpress acts like functions.php doesn’t exist [closed]
- Infinite counting in WordPress
- Use a shortcode to display custom meta box contents
- javascript and css links not working on sever
- Missing argument for the function
- is_page() or is_single not working
- Tags break custom Excerpt function
- WordPress multisite,use same cookies across all website?
- Enqueue script on every page except one
- Best way to handle lack of titles in microblogging
- New custom menu created. how to apply it?
- problem loading stylesheets to wp_head dynamically
- Numbering lines of code with the tag?
- functions.php and conditional tags