从我收集的数据中,我需要以某种方式使用$post->post_status,' status ',可能使用jQuery之类的东西.但是我不知道如何将其与Ajax捆绑在一起.本以为我会在编辑帖子屏幕上查看默认的帖子状态修饰符,但会得到一些帮助,但是我意识到它不是基于Ajax的,当您按"更新"时,状态会更新(很明显,是啊).
I'm currently trying to implent a new custom column at the page manage screen that will let me change the status (published/pending) of the different pages via an easy toggle link.
From what I've gathered I need to use $post->post_status, 'status'in someway, probably toggle with jQuery or something. But I can't figure out how I tie it together with ajax. Thought I'd get some help looking at the default post status modifier in the edit post screen, but I realized that it's not ajax based, I the status updates when you press "update" (obviously, duh).
我目前正在尝试在页面管理屏幕上添加一个新的自定义列,该列将允许我通过一个简单的切换链接来更改不同页面的状态(已发布/待处理).
从我收集的数据中,我需要以某种方式使用$post->post_status,' status ',可能使用jQuery之类的东西.但是我不知道如何将其与Ajax捆绑在一起.本以为我会在编辑帖子屏幕上查看默认的帖子状态修饰符,但会得到一些帮助,但是我意识到它不是基于Ajax的,当您按"更新"时,状态会更新(很明显,是啊).
到目前为止,这是我糟糕的尝试:
如果有人能指出我正确的方向,我将不胜感激.