I have not received any code from you, however what you are describing is not a feature that I will add to the plugin. The plugin publishes custom post types that are marked as “public” automatically, and adding some sort of extra options is not something that I want in the plugin.
Decisions, not options. If you don’t want it publishing a CPT, don’t make that CPT into a public one.
If you want to customize which post types it publishes, there is the sfc_publish_post_types filter which was added for that purpose.
Thread Starter
shecky
(@shecky)
Hi Otto.
Thanks for reply.
I sent code to [email protected] on 30 November.
Can you explain how use sfc_publish_post_types and where I can set it?
Thanks.
Thread Starter
shecky
(@shecky)
Hi Otto!
Mail addres is right?
Can you explain how use sfc_publish_post_types and where I can set it?
Can you send me a copy of your plugin Simple Twitter Connect?
Yes, that is my email address. No, I’ve never received any email from you.
“sfc_publish_post_types” is a filter hook. You need to know how to program PHP and how to use filters.
http://codex.ww.wp.xz.cn/Plugin_API#Filters
Also, STC is not functional at the moment due to Twitter’s API changes.
Thread Starter
shecky
(@shecky)
I resend the mail just now.
I’m a developer and know very well WordPress and PHP 😉
What you’re suggesting is to change all the Custom Post with a filter hook functions: but if I had different types of Custom Post, I should create a function for each of them.
My solution instead allows choose what publish and what not publish with a click: this would give more flexibility to your great plugin!
For example in my site I use bbPress and with my solution I can exclude replies and publish only the topics: all with a single click!
I only ask you to take a look at my modification without necessarily include it in your plugin: my just wants to be a suggestion to improve SFC 😉
I know that STC is not functional at the moment.
I asked you the old version (as you can read in the mail that I send) just to be able to help you in API updating and release as soon as STC.
Regards.
Davide.
No, the filter hook allows you to define what CPTs that the plugin will auto-publish. One hook. One function to tell it what to publish. No need for options or settings.
Your solution would basically force the user to choose. I dislike that, I prefer to simply publish everything, CPTs and all, which have been designated as “public” post types. The filter hook is there in case you want to limit that even further.