{"id":4020,"date":"2020-11-29T18:30:46","date_gmt":"2020-11-29T18:30:46","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=4020"},"modified":"2022-09-15T10:58:55","modified_gmt":"2022-09-15T10:58:55","slug":"api-wd","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/woo-discount\/getting-started-wd\/api-wd","title":{"rendered":"API Bulk Discounts for WooCommerce for WordPress"},"content":{"rendered":"<p>\n  Currently there is only one function. It can be used in site\u2019s theme or in another plugin.\n<\/p>\n<h2>\n  seraph_wd\\API::AdjustPrice<br \/>\n<\/h2>\n<p><strong>seraph_wd\\API::AdjustPrice( $product, $price, $attrs )<\/strong>\n<\/p>\n<p>\n  It adjust <strong>$price<\/strong> according to specified product <strong>$product<\/strong> and attributes <strong>$attrs<\/strong>. E.g. seraph_wd\\API::AdjustPrice( $product, 50, array( &#8216;quantity&#8217; =&gt; 10 ) ).\n<\/p>\n<p>\n  The rendering example of using this method can be shown on <a href=\"\/products\/wordpress\/woo-discount#offer\">our site<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Currently there is only one function. It can be used in site\u2019s theme or in another plugin. seraph_wd\\API::AdjustPrice seraph_wd\\API::AdjustPrice( $product, $price, $attrs ) It adjust $price according to specified product $product and attributes $attrs. E.g. seraph_wd\\API::AdjustPrice( $product, 50, array( &#8216;quantity&#8217; =&gt; 10 ) ). The rendering example of using this method can be shown on&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":1115,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[133],"tags":[],"class_list":["post-4020","doc","type-doc","status-publish","hentry","category-woo-discount"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/4020","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=4020"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1115"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=4020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=4020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=4020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}