Wordpress-使用插件创建帖子 [英] Wordpress - Create post with plugin
问题描述
是否可以通过输入标题,内容,类别和自定义字段(重要)来使用wordpress插件创建帖子?某种程度上,我在文档中找不到任何相关信息: http://codex.wordpress.org/Plugin_API或在Google上.
is it possible to create posts with a wordpress plugin by entering a title, content, category and custom field (important)? Somehow I can't find anything about it in the documentation: http://codex.wordpress.org/Plugin_API or on Google.
谢谢,里克.
推荐答案
用于执行此操作的函数是 wp_insert_post .
The function for doing that is wp_insert_post.
我总是在WordPress参考部分找到一些PITA来进行导航.因此,您可能希望在此页面上添加书签- http://codex.wordpress.org/Function_Reference WordPress的所有(大多数)可用功能的列表.
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.
这篇关于Wordpress-使用插件创建帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!