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
- Get plugin directory from a theme
- Rewriting every url
- How can I make my custom shortcode work in a Custom HTML Widget?
- Custom admin column disappearing when using Quick Edit [duplicate]
- Create page when plugin is activated
- How to un-attach rich text editor from named textarea elements
- Disallow a user to post in certain categories
- Article source link for posts
- how to not show plugin in admin area
- Memory Leak in plugin action
- Getting User email on logout. wp_logout
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Can a plugin add to header/footer/body content?
- Add a Custom Permalink option in the Permalink Admin Screen?
- How Can A Plugin Hook Itself To the End of Every Excerpt?
- Allow Facebook to preview posts before published
- Let user subscribe to specific categories
- Output HTML only on individual post view
- add action for displaying posts using a shortcode
- Best way to hook a custom url?
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How do I add a custom sub menu menu under Woo-commerce marketing?
- How to load plugin after page is loaded – pagespeed issues
- Do action only on certain front end pages?
- Archive – same title for the first two posts
- How to hide some section in WordPress under Post
- User Session and Stored Cookies not get removed
- Create a navbar filter that filters by a custom field
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- Plugin Development Form Self Submission
- Does a blank plugin come with any overhead?
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Import Instagram post to WordPress blog post
- Making my plugin create a page?
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Built a second plugin but it overwrote the first one
- Search users with custom meta data
- Calling a class method instantiated by ajax call in wordpress [closed]
- If post exists in the database – each time goes on `else`
- How can i summerize posts or news automatically in word press site?
- Edit part of a post
- Error using wordpress functions inside a plugin class
- How to Join wp_posts & wp_postmeta table using custom query
- Use localized plugin name and description even when the plugin is disabled
- Randomize post (and page) IDs on generation
- Cron task gets removed from the schedule
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- One time call to external API in widget
- Failed to load resource: the server responded with a status of 500 () post.php
- plugin installing error
- Call function when save setting/option in custom admin page
- How to prevent authors from editing their post count?
- How can I use wp_ajax_response for front-end error reporting?
- Force download a file within plugin file
- Ger posts from similar tags and categories
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Is it possible to run javascript on plugin deactivated?
- How to fix ‘Call to undefined function do_settings()’ error?
- How can I make my plugin detect if a certain theme is active?
- Plugin Block at the backend of every page or post