Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在WordPress publish\u post hook中为post请求准备JSON对象_Wordpress - Fatal编程技术网

如何在WordPress publish\u post hook中为post请求准备JSON对象

如何在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":

//准备此json以通过publish_post hook中的插件发布到rest api

  "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": "" 
        }  
      }
    } 
  }
}



请详细说明你的研究和你面临的错误。请参阅