Skip to content

Use get_post_type() instead of get_current_screen()->post_type #366

@danielbachhuber

Description

@danielbachhuber

get_post_type() is more appropriate because it isn't fixed to specific admin contexts.

Previously #355
Related #337

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions