[wp-hackers] WPMU: choose which blog to create a new post in - wp_insert_post()

Thomas Belknap dragonfly at dragonflyeye.net
Mon Dec 7 20:49:38 UTC 2009


http://holisticnetworking.net/plugins/wordpress-mu-function-list/

Check "switch_to_blog" and "restore_current_blog" for details.

On Mon, Dec 7, 2009 at 3:46 PM, Alex Hempton-Smith <
hempsworth at googlemail.com> wrote:

> Hi all,
>
> For a WPMU plugin I'm developing I need to create a post in a specific blog
> using the *wp_insert_post()* function.
> I.e. whilst I'm browsing another blog I should be able to hit a button and
> a
> post is created on another one. How would I go about this?
>
> -- Alex  (Hempsworth)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list