最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How publish post from pending status

programmeradmin1浏览0评论

wp_publish_post() function not work correct, because need to generate url and define author. Post added via User Frontend Pro plugin. Posting via admin panel works correct.

wp_publish_post() function not work correct, because need to generate url and define author. Post added via User Frontend Pro plugin. Posting via admin panel works correct.

Share Improve this question edited Mar 27, 2019 at 22:04 Krzysiek Dróżdż 25.6k9 gold badges53 silver badges74 bronze badges asked Mar 27, 2019 at 21:40 MartinMartin 112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

When WordPress gives you errors such as that the post needs an author and permalink, it is best to figure out a way to provide these. Otherwise you are asking for trouble further down the line. You might find a way to force it, but it would be an uphill battle. WordPress is like a spiderweb of connections, and you would be severing several strands.

Your question sounds like it might be better directed at the creators of User Frontend Pro, as they are the ones who will be familiar with how the posts are being created and how that result is intended to fit into a workflow.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论