I’ve to work on a WordPress that makes use of the plugin Simple Put up View Depend, which by default doesn’t assist relaxation api.
With the plugin Customized relaxation api i have been capable of get these submit meta contained in the submit response of relaxation api, which seems like this
“post_view_count_101047: 47”
The place the numbers stands for the submit Id and worth the numbers of views.
My query is how I can edit these submit meta utilizing React and Relaxation Api ? I am struggling to grasp methods to write on that endpoint because it’s mainly one submit response api = each post_view_count_[post_id] the place solely the post_view_count_[post_id] that match the submit Id is populated
right here the submit id is 212887, and that is a part of the response for submit/212887
Is there a greater means ?
I’ve additionally thought of utilizing one other view rely plugin that assist Relaxation Api out of the field and simply change the submit meta key within the database to suit the brand new format of the plugin that assist relaxation api. Is it a good suggestion?
thanks on your assist