mAAdhaTTah / wordpress-github-sync

A WordPress plugin to sync content with a GitHub repository (or Jekyll site)
https://wordpress.org/plugins/wp-github-sync/
GNU General Public License v3.0
613 stars 99 forks source link

Document `wpghs_whitelisted_post_types` #195

Closed lvnilesh closed 6 years ago

lvnilesh commented 6 years ago

Thanks for good plugin.

I am able to sync _posts and _pages and want to sync automattic/sensei lessons.

What does it take to sync sensei lessons?

mAAdhaTTah commented 6 years ago

Yes, it appears I haven't documented this, but the filter is here. Use wpghs_whitelisted_post_types and return an array of post types you'd like to sync. Defaults to post & page.

lvnilesh commented 6 years ago

simple usage example would be awesome. thank you.

mAAdhaTTah commented 6 years ago

Yeah, I changed the title to reflect that, but I'm on vacation now and have other priorities so it may be some time before I get to it.

lvnilesh commented 6 years ago

I understand that. Appreciate your help. Take your time.

lvnilesh commented 6 years ago

You have documented it already here https://github.com/mAAdhaTTah/wordpress-github-sync/blob/master/README.md#custom-post-type--status-support

lvnilesh commented 6 years ago

Thank you.