如何在WordPress publish\u post hook中为post请求准备JSON对象
//准备此json以通过publish_post hook中的插件发布到rest api如何在WordPress publish\u post hook中为post请求准备JSON对象,wordpress,Wordpress,//准备此json以通过publish_post hook中的插件发布到rest api "body": { "miscDetails": { "MiscType": "Misc Type", "MiscObjectName": "Misc Type name", "MiscObjectFormat":
"body": {
"miscDetails": {
"MiscType": "Misc Type",
"MiscObjectName": "Misc Type name",
"MiscObjectFormat": "Misc Object format",
"List Of Misc For sale": {
"Misc Sale Type": {
"Name:" get_the_title(),
"Description": get_the_content(),
"Misc Tool Type": get_the_category()->cat_name,
"LitFileName": ""
}
}
}
}
}
请详细说明你的研究和你面临的错误。请参阅