Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post to meta filters #387

Open
stefanfisk opened this issue Nov 27, 2024 · 0 comments
Open

Add post to meta filters #387

stefanfisk opened this issue Nov 27, 2024 · 0 comments

Comments

@stefanfisk
Copy link

Is your feature request related to a problem? Please describe.

AFAICT, there is currently no official way to get the post from within duplicate_post_excludelist_filter and duplicate_post_meta_keys_filter filters. This makes it hard to return different values based on the original post's type or similar.

Describe the solution you'd like

Add a WP_Post $post parameter to the filters.

Why do you think this feature is something we should consider for the Yoast SEO plugins?

Because it would be an improvement to the plugin.

Additional context

I've spent about an hour looking through the code, and I cannot find any reliable workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant