feat: keyword-based filtering for post sharing#1089
Merged
Conversation
Add the ability to filter posts for automatic sharing by keywords in the post title or content, in addition to taxonomies. A global field is available under General Settings (Free/Starter); in Pro the filter is configured per account in the post-format panel, mirroring how taxonomy filtering works. An Exclude toggle switches between skipping matching posts and sharing only matching posts. The match is applied as a scoped posts_where clause and is inactive when empty. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Soare-Robert-Daniel
approved these changes
Jun 22, 2026
Contributor
Author
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # assets/js/build/dashboard.js
Contributor
Contributor
|
🎉 This PR is included in version 9.4.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds keyword-based filtering so posts can be included/excluded from automatic sharing based on words or phrases in the post title or content — useful when taxonomies aren't granular enough (e.g. skipping "sponsored" posts).
Implemented as a scoped
posts_whereclause on the selector query (keywords escaped withesc_like+prepare). When no keywords are set, the query is unchanged, so existing behaviour is preserved.Will affect the visual aspect of the product
YES — a Keyword Filtering field is added (General Settings on Free/Starter; per-account post-format panel on Pro).
Test instructions
sponsored, keep Exclude checked, Save. Posts with "sponsored" in title/content are skipped from the queue. Switch Exclude off → only matching posts are shared.Check before Pull Request is ready:
Closes https://github.com/Codeinwp/tweet-old-post-pro/issues/662