We used MainWP Code Snippets with snippets type “Execute on Child site > Save and Execute Snippet”
After that, We cloned/migrated that WordPress site to a new domain.
The MainWP Child plugin is installed and active on the new site. But we reconnected it so the MainWP Dashboard detects it as a new child site.
Since the snippets were saved on the original site (DB option) and the DB was cloned, the codesnippets are still present on the new domain, is it?
Question:
When adding the cloned site as a new child, will the Code Snippets extension detect snippets already saved on that child and show them as “applied” in the Dashboard?
If not, is there any supported way to list/pull existing saved snippets (saved previusly with the Mainwp Code Snippet Addon)?
If a cloned/migrated site is added as a new child, MainWP Code Snippets won’t automatically detect previously saved snippets on that site and mark them as “applied.”
The code can still exist on the cloned site (because the DB was copied), but the Dashboard treats it as a new child entry.
To have it shown/applied in the Dashboard, reselect that new child in the snippet and run/save it again.
In this specific case, the site was cloned some time ago. Since then, snippets have been added, modified, and removed from both the original and the clone.
Now we don’t really know which snippets were cloned from the original… and are still hidden there.
Is there any way to know or see which snippets were duplicated and are still there “hidden”?
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.