开发者

Wordpress - Create post with plugin

开发者 https://www.devze.com 2023-03-27 18:33 出处:网络
is it possible to create posts with a wordpress plugin by entering a title, content, category and custom field (important)? Somehow I can\'开发者_JAVA技巧t find anything about it in the documentation:

is it possible to create posts with a wordpress plugin by entering a title, content, category and custom field (important)? Somehow I can'开发者_JAVA技巧t find anything about it in the documentation: http://codex.wordpress.org/Plugin_API or on Google.

Thanks, Rik.


The function for doing that is wp_insert_post.

I've always found WordPress reference section a bit of a PITA to navigate. So you might want to bookmark this page - http://codex.wordpress.org/Function_Reference It has a list of all (most) of the available functions for WordPress.

0

精彩评论

暂无评论...
验证码 换一张
取 消