[wp-hackers] Passing messages to the Post Successful screen
lists.automattic.com at callum-macdonald.com
Fri May 11 10:14:57 GMT 2007
Thanks for the suggestions.
I thought about using the options table. I'm making a remote XMLRPC
call, so I don't know if it will have completed when the post.php file
redirects. The redirect might complete before the XMLRPC call. In which
case, the data would get to the options table too late.
I could build some sort of Ajax thing to update live I guess, but that
seems like a lot of work to display a simple "failed" or "succeeded"
Anyone got any ideas that might get round the redirect / XMLRPC delay
David Chait wrote:
> save to options table? write to text file? save as meta fields for
> the particular post? just brainstorming...
> Callum Macdonald wrote:
>> I'm writing a plugin to cross post to multiple blogs via XMLRPC. So
>> you write a post on your main blog and based on the categories you
>> choose, it will automatically cross post that to other blogs.
>> WP uses a redirect from the post submission to the "Post Successful"
>> page, so I'm losing any variables I instantiate in my plugin. Thus, I
>> can't add any messages under that "Post Successful" message. Can
>> anyone suggest an approach to get around this issue? Or a plugin that
>> successfully does it?
>> All suggestions appreciated,
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers