You can use $wpdb
to access any database you have access to (credentials for) so one site or the other could access its partner’s database or both could access a third database. It shouldn’t be hard but you will need to write most of the SQL
to do it.
If you are in a position to refactor this, you could consider having both sites share the same database, via distinct database prefixes, and then save to custom table instead of bothering with access to multiple databases.
Your question is not really specific enough to allow for a more detailed answer.
Related Posts:
- WordPress sharding: which multi-DB plugin to use?
- Simple form that saves to database
- How to run Two WordPress blogs with different themes and with single database and same content
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Is the wordpress user-model changed in wpmu?
- WordPress Multisite plugin delegation
- Retrieving a Value from a wp-database
- WP plugins for building a database?
- “Micro-Site” Options
- “Master” WordPress Multisite – Database Sync
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- How to implement data residency in my WordPress site
- Include plugin form in the home page
- Create user assessment and use results in sql query
- WordPress MU LDAP connection failures
- Integrating planning tools in wordpress
- Managing database tables in WordPress multisite
- Creating fields in the database
- Allow users to enter and edit data in one-to-many configuration
- Add custom fields in the new and edit the site forms without touching the WP core
- Form with response button after on table after submission
- Can’t save formdata in DB
- Delete tables from database when deleting plugin
- What is a Network Activated Plugin Exactly?
- How do I check what plugins are enabled via the database?
- While using WordPress Multisite is it possible to display data to main site from subsites?
- Is it possible to run plugin code when a multisite blog is deleted?
- Multi domain, multi sites with different themes and content
- Posts wont expire
- How to update widget_text in the wp_options table
- How to disable autocomplete for inputs in contact form 7? [closed]
- prefix table and plugins
- Duplicate a Multi-Site Subdomain
- How to get last_updated and newest_blogs in WP 3.0
- Display All Non-Used Plugins
- Having separate plugins and themes folder for multi-site setup
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin
- Remove filter from WordPress Plugin
- If I delete plugins via FTP are settings kept in DB?
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- Network: retrieve a list of latest posts
- How to add class in plugin only for network site?
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- How to write a plugin to add users to a mail list
- WordPress on AWS with ELB
- New User Form – Custom Menu Page
- How to access data in wordpress database externally using php
- Media is not attached after import
- Anonymous Postings
- custom user tables supported in SharDB plugin?
- How to check if tables in WordPress still exists after activations
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- Checkbox conflict in my custom plugin admin page
- WordPress Integration with Google Groups
- wp_editor content in plugin options page
- WP Plugins – Use includes to display page content
- WordPress as a data-store?
- Multisite – maximum number of users with specific role
- Issue running db create table query from static method
- Problem of encoding characters (apostrophes) in my posts publications
- How to see which sites use my installed plugins (wordpress multisite)
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- WordPress plugin boilerplate table create
- How to relate 3 wordpress components with each other (Create database relationships)
- Creating a search form and displaying results
- Issue removing Media Editor Tabs — Duplicate Items
- How can I store data from custom fields to custom tables?
- Contact Form 7 Plugin emails not being received by some accounts
- Integrating Custom Database with WordPress
- Getting URL GET parameter with Code snippets and storing it in database?
- Multisite Change from domain.com to sub.newdomain.com
- Same Plugin tables between wordpress installations
- How to get data from a form on a wordpress site?
- General Term for this form Field
- Creating one user access account for all the multiple sites
- WordPress database problem wp_posts, primary key
- How to allow URL with filename & extension in wordpress?
- How to send custom mail when a user complete a specific form
- Pause form submissions while upgrading plugins
- using wordpress login details for other website / application / forum?
- How to hide the form after successful php execution
- how to create database to use it in wordpress website?
- How to create a custom page for unrelated database?
- User content database [closed]
- Automatization for automatization
- Form submit from wordpress plugin
- How do I convince this button to do something when it is clicked?
- Plugin on all site except primary one
- How to find an option in the database?
- Carrying information from button click into form [closed]
- Get the url of attachments from the post?
- County Finder form/plugin?
- Frontpage Admin Bar Disappeared
- Shortcode returning specific content of a post
- get_option returning a different value from what’s saved
- turn off WooCommerce for a site in a multi site environment
- How can I delete the options from DB when the plugin is deleted?
- Does anyone recognize these table names?