I want to create a plugin, through that plugin user can publish new post, without using Wordpress post option. Is there any solution available?
3
-
stackoverflow.com/questions/7053346/…Riz– Riz2012-04-05 15:13:26 +00:00Commented Apr 5, 2012 at 15:13
-
one more option codex.wordpress.org/XML-RPC_wpVamsi Krishna B– Vamsi Krishna B2012-04-05 15:16:12 +00:00Commented Apr 5, 2012 at 15:16
-
Or there is way to publish a new post via a secret email as well in WP.anubhava– anubhava2012-04-05 15:17:15 +00:00Commented Apr 5, 2012 at 15:17
Add a comment
|
1 Answer
If you want to publish a post from a Plugin, then you have to call the wp_insert_post() function, with the appropriate details of the new post that you want to create.