You could add a filter to the post publish process in site A. The filter would check for the tag/category, and if found, run a process to create a post in Site B.
See https://codex.wordpress.org/Plugin_API/Action_Reference/save_post . Something like:
add_action( 'save_post', 'my_site_b_create_post' );
function my_site_b_create_post($post_id) {
// check for category
// if category, then save content of site A post into variable (maybe title, author, etc)
// create post on site B
return;
}
Adding that hunk of code to the functions.php of Site A (in a Child Theme, of course, so a theme update doesn’t bork your code).
Related Posts:
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- How do I unlock a post programmatically?
- How To Ignore a Filter On Applying Filter the Content In a Function
- How to get posts by content?
- Publish Post After Click On A Link
- Action on post publish
- How use %like% in sql statement wordpress
- Adding Attachment Display Settings in custom media frame
- Execute a plugin only on post pages
- finding whether request is for post, and post id
- Display post lists in 2nd paragraph
- Redirect to another page using contact form 7? [closed]
- How to get all posts belongs to a user between a certain date
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Post status doesn’t update to ‘future’ every time?
- Delete data from custom table when deleting a post
- Plugin is creating posts twice
- How to get Recent Post From Each Category with Thumbnail?
- help intercepting save_post through plugin
- Is it possible to pin a post in second position from top
- Help to Create a Simple Plugin to make a post
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- add tags to wordpress post using REST API
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- WordPress Product Detail and catalog
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Get content and send to 3rd party
- Displaying friend’s posts only
- Get page type to display content
- Capturing POST data
- Custom feed parameters / Template overriding
- Plugin to display text before a post
- warning wp session
- How to trigger $_GET request within admin plugin page?
- HTML in WooCommerce settings
- How can i list random post from multiple category?
- Plugin Paths Issue
- Building an email signup form. Where should the information be saved in the DB?
- Can WordPress Plugin Directory Cache Delay the Upload of Images?
- Why my Plugin keeps deactivating automatically?
- Determine Registered Admin Menus
- Support for simultaneous editing
- How to generate video out of images via WordPress plugin
- How can I add an options page for my class based plugin?
- How to Create a Custom Plugin Permalink
- Sending WP posts to external API
- How to write a plugin to add users to a mail list
- What function can I use consistently to escape possible HTML for editing and display?
- How to get 1 or 2 specific posts on top of my wordpress blog?
- WordPress plugin for activating other plugins
- Portfolio + Blog: multisite or plugin?
- Any Short code Availble for Get Post List With Thumbnail Plugin?
- plugin development: problem with functions
- How can I get WordPress to save comments in markdown format?
- First WordPress Plugin – Stat Issues
- Getting a List of Categories for Use in a Plugin?
- Changing labels of status filters for post grid
- Can we use a webservice with WordPress?
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- How do I add a custom sub menu menu under Woo-commerce marketing?
- WooCommerce get_price returning wrong price when used via ajax
- How to ‘clone’ a wp plugin to make small changes
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- How to load plugin after page is loaded – pagespeed issues
- Open Post Thumbnail in New Child Theme File in WordPress
- How to pull code snippet from functionality plugin?
- How to use get_theme_mod in gutenberg editor wordpress?
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Where should I save an API key of my user when installing my plugin?
- How to make a customize role and view a specific plugins base on that role?
- Reusable functions and tools (Framework)
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Programatically download a plugin
- Accessing post’s meta data based on user’s click of a post
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- React JSX in WordPress Plugin Development
- My plugin wants to update another plugin
- Redirecting to home page after login as custom role WordPress
- Add keywords meta to index.php page
- Custom form action to handle data inside a plugin
- Where (or when) should I register a new taxonomy?
- Woocommerce plugin for minimum order and add-to-card-step
- Self deactivate plugins after an action occurs
- How to get current post user id
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Issue with adding count to “subsubsub” aka quick links on custom_post_type
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- View Private Published Page with URL Code (no login required)
- How to slice an array using posts_per_page? [closed]
- White page on custom plugin option submit
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- Simple ajax call not working in wordpress plugin