Hot answers tagged

2

I found the solution and will post here on the off-chance it helps someone in the future. The bottom line is there was a typo in a function that responded to POST requests. I narrowed it down to one file by disabling portions of my plugin in the activation class. By doing this I determined the error only occurred when this file/function was included: if ( $...


2

Adding &_embed to your URL will add the wp:featuremedia to your JSON even if you have custom posts, Example https://example.com/wp-json/wp/v2/posts?search=Sometitlepost&_embed&order=asc


2

Never mind I found it. let selectEntries = Object.entries(myjson).map( ([k, v]) => ({label: k, value: v}) );


1

Hey guys there are just a few changes in the above code. Check this out it works for me. Note: Please change the LIST_ID to your klaviyo's list id, and get one private key from your klaviyo account and add it at PRIVATE_API_KEY function send_coupon_to_freshly_registered_user($user_id) { $user = get_user_by('id',$user_id); //new line $...


1

I had the same problem and I find out how to solve it: For each "fontFamily" inside "fontFamilies" array, you get a custom variable. From your example You can use both variables on your stylesheet or in theme.json: --wp--preset--font-family--helvetica-arial --wp--preset--font-family--ubuntu-sansserif And then you call the font like this: ...


1

I have solved the issue. It was unrelated to json / javascript / api. It was a simple issue of tmp folder ownership. Since there were no errors spewing out by the php managing the request, I never noticed a PHP NOTICE saying to check permissions in temp folder as php was unable to upload the temp file there. And indeed, while the permissions were fine, the ...


Only top voted, non community-wiki answers of a minimum length are eligible