• Resolved k4mr4n

    (@k4mr4n)


    I am using WCFM Multivendor Marketplace and also I am using Perfect Woocommerce Brands for branding, I am creating product using WCFM REST API but cant send brand data through REST API. Is there any solution that I can send brand data too through API?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hello,
    You must extent the api to and write your custom code to send any additional data through the API requests. Our api support default WooCommerce product data.

    Thank you.

    • This reply was modified 3 years, 5 months ago by WC Lovers.
    Thread Starter k4mr4n

    (@k4mr4n)

    I am new in this area, can you please explain me in more details what i should to do, or send me some related links about it?

    Plugin Author WC Lovers

    (@wclovers)

    Hello,
    There is a WordPress filter hook applied before the response is generated through the API.

    apply_filters( "wcfmapi_rest_prepare_product_object", $response, $product, $request );

    Please use add filter to extend the the hook wcfmapi_rest_prepare_product_object
    and add any data in the $response according to your requirement.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WCFM REST API’ is closed to new replies.