plugins - Is it possible to customize a wordpress post from outside dashboard(Something like site.compost-typepost?e=post_id)?

My question is -Is it possible to customize a wordpress post without using wp-admin dashboard?If so, how do I need to g

My question is -

  1. Is it possible to customize a wordpress post without using wp-admin dashboard?
  2. If so, how do I need to generate url for the post?

  3. How to submit the data which is edited through the form?

My question is -

  1. Is it possible to customize a wordpress post without using wp-admin dashboard?
  2. If so, how do I need to generate url for the post?

  3. How to submit the data which is edited through the form?

Share Improve this question edited Oct 29, 2019 at 16:41 Md Mahbub Bakth Ansary asked Oct 29, 2019 at 16:24 Md Mahbub Bakth AnsaryMd Mahbub Bakth Ansary 113 bronze badges 2
  • Yes! Put a look here: developer.wordpress/reference/functions/wp_update_post and here: developer.wordpress/reference/functions/update_post_meta – Sam Commented Oct 29, 2019 at 16:35
  • To reply since changing your title: You have several ways. You can create a file and include it with a init add_action in your functions.php.. after, you do some codes in your file for activate it when you get "e=" and you have good authentification. You can create a page in your admin, create a page template and make some codes for accessibility, etc... – Sam Commented Oct 29, 2019 at 16:59
Add a comment  | 

1 Answer 1

Reset to default 0

Is it possible to customize a wordpress post without using wp-admin dashboard?

Not the way you're wanting it, to answer this more thoroughly:

Is it possible to customize a wordpress post from outside dashboard(Something like site/post-type/post/?e=post_id)?

Not out of the box, there is no frontend post editing UI in WordPress. You would have to build it yourself ( and many people do )

Can I Build One?

Yes! But you would need to implement the UI yourself, and you would need to process that data and pass it to wp_insert_post, and handle the security.

You could use the REST API, and let that handle the security, simplifying things. That's what the block editor does.

If so, how do I need to generate url for the post?

As mentioned above, there is no frontend post editing UI out of the box

How to submit the data which is edited through the form?

You'd have to construct the form and the handler for it yourself. wp_insert_post and wp_update_post are the critical functions you need to research, otherwise it's just like any other form handling.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745045672a4608082.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信