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
- WordPress Settings Lost After Site Migration
- Media is not attached after import
- How can I disable the multisite feature of WordPress 3.0?
- Help With MySQL to WPDB Query Conversion
- NGiNX + PHP5-fpm + CDN Tools (plugin) [closed]
- Any recommendation on how to manage ads?
- Plugins not showing in Multisite dashboard
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Anonymous Postings
- custom user tables supported in SharDB plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Using a custom plugin to capture input data via Ajax and PHP
- DROP TABLE with uninstall hook not working
- How to check if tables in WordPress still exists after activations
- how to oauth1 Wp plug-in revoke/reset.?
- Prevent duplicate records in plugin table
- Show function to super admin
- Generate pages from markdown files in github automatically
- There is any way to remove post-format filter? [closed]
- auto populate list of questions if user select a category xyz
- WordPress WPforms customization
- Install (enable) plugins on multisite, on localhost
- How can I perform high-level database merging for WordPress within continues delivery?
- Delete query not working in plugin
- WordPress multi domain – redirect
- How to remove traces from widget during uninstallation
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- How can I copy all users to newly created site on a multisite network in WordPress?
- Submit page limited in time to upload image
- Adapt PHP form action for WordPress?
- WordPress wp-admin/network/plugin-install
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- Create a multisite network for an existing installation
- How do I network enable a plugin for a multisite install via the database?
- Ajax fail and get 504 error
- External Domain on WordPress Multisite
- Take input from form and pass it to function using a wp-plugin
- WordPress Backend HA (Automatic failover)
- Checkbox conflict in my custom plugin admin page
- import posts with dutch/special letters
- Automatic switch to backup database on fail
- How can I change the meta_key for a particular piece of information?
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- WordPress Integration with Google Groups
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Configuring Propel to Work with Multisite
- Setup page on first login on multisite
- Create a table with wordpress plugin boilerplate
- How do I make a child theme I made POST through a 3rd party plugin?
- Subdomains with almost the same content
- wp_editor content in plugin options page
- WP Plugins – Use includes to display page content
- Multiple instance of data in plugin custom database table on plugin activation
- Uninstalling plugins across all sites
- Multiple domains issue
- WordPress and a secondary database?
- WordPress plugin creating database in localhost but not on real host
- Why this function not working for install database on plugin activation
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- How to fetch form data and show it to my page?
- Plugin to create forms using HTML [closed]
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Submit custom form from post content and execute in plugin
- How to allow user to select User ID in Formidable Pro form? [closed]
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Char limit on custom blog-post form? [closed]
- Will these plugins work with wp multisite?
- User Signup in Multisite – Need Plugin or Advice
- Better ads plugin has 500.000 entries in wp_postmeta
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- Redirect to another page using contact form 7? [closed]
- How to create multiple database tables on plugin activation?