Facebook for Woocommerce plugin modification

Job ID: 30913991

Budget: €30 – €250 EUR

Hello,
we run a Wordpress Multisite envirnoment where users can create their blogs and connect blog to facebook via Facebook for Woocommerce plugin.

We have an issue because we create new blogs from a template which has the plugin pre-activated. We use WPMUDEV Blog Templates. The issue is that Facebook for Woocommerce creates a wc_facebook_external_business_id entry in new blog's wp_options database table and this entry gets copied when a user creates a new blog from our template. Result is that he cannot connect to facebook and we have to manually edit this field in mySQL to generate a new business_id in order to make it work.

Our request is if it's possible to automatically generate a random wc_facebook_external_business_id on new blog creation in order to avoid the manual modification everytime.

wc_facebook_external_business_id has this format: examples-5fa9ac90b3193, dynamic part is "examples" which is composed by 8 letters and has to be dynamically generated on new blog activation.
Related categories: PHP WordPress MySQL HTML Plugin