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

Allow filtering what is a 'non-deleted' post in transition_post_status hook #2

Open
medfreeman opened this issue Jan 12, 2017 · 1 comment

Comments

@medfreeman
Copy link

Hi,
thanks for your work!

I've recently got a contract where i'll have a huge need of this plugin.
So i'll submit a bunch of feature requests / improvements in the next few days / weeks, and provide accompanying pull requests.

My use case is:

  • I'm making a simple restricted content plugin where some posts (or any singular post type object) have to be private, but accessible via a specific url containing a key triggering a transparent login to a restricted account (having only read_posts and read_private_posts capabilities)

  • After a lot of research i determined that the best way to do this is to use the 'private' Wordpress visibility option, to avoid a lot of coding regarding the content not being available in SEO, posts lists, etc...

  • These 'private' posts have to be shareable via json API to a third-party, that will publish the private links in a member area

So the goal is to add a filter on this line.

A good name could be 'jras_listener_post_statuses' ?

@tlovett1
Copy link
Owner

That filter name works. Thanks!

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

2 participants