Skip to content

Add post to meta filters #387

@stefanfisk

Description

@stefanfisk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions