How to write this wordpress code
The idea here is to share bulk WordPress posts between multisite blogs automatically. I have googled some tutorials and I know I can use save_post action hook, switch_to_blog and get_post() + wp_insert_post functions. But I can’t figure out how to write the code in my theme functions file. I am learning PHP and I can read the code and understand its function but not comfortable enough to write it so I am experimenting.
Thanks for any guidance.