最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How publish post from pending status

matteradmin5PV0评论

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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far