Create a wiki post programatically

Can you help me on how to create a wiki article programatically?

I'm not entirely sure of how you did it so I went through your source code and came to conflicting concusions:

From looking at wiki-include.php my guess would be that it's just the standard Wordpress posting mechanism, but with a single hook installed, the 'save_wiki_meta'.

However, when the edit wiki article form submits the data to http://<site-name>/<wiki-slug>/<wiki-article&gt; instead of to post.php, suggesting that you have some special thing going on behind the scene.