简体   繁体   English

wordpress自动发新帖的方法

[英]How to publish new post in automatically in wordpress

I want to create a plugin, through that plugin user can publish new post, without using Wordpress post option.我想创建一个插件,通过该插件用户可以发布新帖子,而无需使用 Wordpress 发布选项。 Is there any solution available?有什么解决办法吗?

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.如果您想从插件发布帖子,则必须调用wp_insert_post() function,并提供您要创建的新帖子的适当详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 WordPress 中的帖子中删除发布按钮 - How to remove publish button from the post in WordPress 每次在WordPress中发布新帖子时如何自动从帖子作者的Twitter帐户发推文 - How to tweet automatically from the post author's Twitter account each time a new post is published in WordPress WordPress:如何自动删除具有特定内容的帖子 - Wordpress: How to delete post with specific content automatically 在 Wordpress 上发布新帖子时是否可以自动发送 firebase 通知 - Is it possible to automatically send firebase notifications when a new post is published on Wordpress 自动将默认文本添加到现有和新帖子的WordPress帖子编辑器中 - Automatically Add Default Text Into WordPress Post Editor For Existing and New Posts 将每条推文发布为Wordpress Post - Publish Each Tweet as Wordpress Post 当我在 Wordpress 中发布新帖子时,我无法获取帖子的标签 - When I publish a new post in Wordpress, I cannot get the tags of the post 如何让访问者在wordpress中发布帖子? - How can I let the vistors publish a post in wordpress? 如何在Wordpress的发布框内的编辑帖子页面中添加一个字段? - How to add a field in edit post page inside Publish box in Wordpress? 如何在WordPress发布后仅触发一次事件? - How to Fire an Event Only Once on WordPress Post Publish?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM