English Content got missing
-
I’m trying to update the post status with WordPress Api but with thus English Content got empty. I don’t know why can you please help me with this issue?
axios.post(https://domain.com/wp-json/wp/v2/posts/${req.body.id}, {status: req.body.status, date: date, date_gmt: date}, {headers: {"Authorization" :Bearer ${process.env[‘wptoken’]}`}} ).then(result=> {
if(result.status == 200) {
res.json({success: true, message: ‘Status updated’})
} else {
res.json({success: false, message: ‘Some Error Occured’})
}
})`This is the code On my nodeJs server which is used to update the status of the post.
The topic ‘English Content got missing’ is closed to new replies.