WordPress V2 REST-API: Endpoints 404?

Try changing your permalinks structure. Within the dashboard go to Settings > Permalinks and select the Post Name structure. When this is done click Save Changes. If Post Name is already selected, it might be worth clicking save changes again to reset the permalinks. Update: Per the comments below, WordPress does not, out of the … Read more

Woocommerce REST API not considering discounts and coupons

In your coupon_lines array, each item in the array needs 2 properties: code (the coupon code itself) and amount, which is either a flat fee (eg 50.00 off) or a discount (eg 10% off). Your structure ends up looking like: “coupon_lines”: [ { “code”: “MYCODE1”, “amount”: “10.00” }, { “code”: “MYCODE2”, “amount”: “25.00” } ] … Read more

Rest API encoding of double quotes

I’ll show here an example of how you can convert the HTML to Plain Text in Swift 4. This example simulate that you’re receiving this: WordPress&#8216House –> WordPress’House Add this extension to convert your html code to a regular string: ` extension Data { var html2AttributedString: NSAttributedString? { do { return try NSAttributedString(data: self, options: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)