Finally I had solved it!
In the source code of the plugin “dc-woocommerce-multi-vendor”, I had viewed the class “class-wcmp-rest-vendors-controller.php” and figured out that they are using this filter in order to gather up the fields of the response:
apply_filters("wcmp_rest_prepare_vendor_object_args", array(...));
In the functions.php of the child theme I had written this code to edit the filter:
function modify_rest_api_vendor_response( $arg ) {
$arg["shop"]["image"]=wp_get_attachment_url($arg["shop"]["image"]);
return $arg;
}
add_filter( 'wcmp_rest_prepare_vendor_object_args', 'modify_rest_api_vendor_response', 10, 3 );
And now I can get the image URL
Hope that it could help somone…
Related Posts:
- REST-API: extend media-endpoint
- Create or Update thousands of woocommerce products via PHP
- wp_remote_get() returns 403 while file_get_contents() does not
- how to do login using woocommerce rest api From android
- Getting all woocommerce products from REST API call in plugin
- is it possible to fetch data from a remote api while admin is writing a new post?
- How can I send api calls from my plugin?
- Is it possible to create post in wordpress using postman?
- Woocommerce plugin for minimum order and add-to-card-step
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- woocommerce payment gateway callback not firing [closed]
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- New databes tables with – WooCommerce – for developers [closed]
- Change commission_status paid when withdraw_status vendor is completed
- custom payment gateway in woocommerce failed to connect to remote api server
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Limit post creation by role
- Set plugin-values when creating post via REST-API
- Woocommerce Minimum Price for a Composite Product to add in cart
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Redirect to another page using contact form 7? [closed]
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Getting a Page via its post-name using WP REST API v2 and Postman
- WordPress REST API Plugin Development – Add Custom Endpoint
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to create WordPress custom end point with multiple parameters?
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Get Every Key & Value from Array then Display All in New Line
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Custom API plugin to execute 3rd party API to retrieve data
- Add a “View all” button on WooCommerce product archives pages
- add seperate suffix for low price and high price in woocommerce
- Cross Sells are not being shown in Cart Page. Please Help!
- Error with get_price (and others) in self-written plugin to show price
- Sending customer an email with link to stripe to make payment
- Search users with custom meta data
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Disable variations on woo commerce if out of stock
- How to add category and subcategory in WordPress custom code?
- Seperate plugin and theme files
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- Change Dashboard URL from wp-admin to wp-admin/index.php
- How to Get Category Name When Export Products
- wp_query ‘s’ parameter does not work with WC_AJAX
- Grouping imported products and showing variations based on selected product
- wc_get_template_part doesnt display the content [duplicate]
- Remove Zero Money From Previews Order woocommerce
- Visual composer custom element error
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- How can i solve php upgrade problem
- Make downloadable ebook read online without download option
- Escape commas in REST API
- woocommerce: Customize email with item total count
- show wc_add notices on particular page in woo commerce custom plugin development
- Do i need to use a plugin for third party api integration?
- How to get the checkout form data from checkout page when place-order button is clicked
- Woocommerce convert simple products to variations
- How to make WooCommerce multiple filter with custom meta fields
- One WooCommerce Store to multi distributor sites
- How to create a plugin with automatic update?
- category page multiple products add to cart any plugin available for woocommerce
- add tags to wordpress post using REST API
- WordPress output data to another website and pull data
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- One time call to external API in widget
- Change Woo Custom Endpoint Titles from a Plugin
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Use Case: Multiple Shipping Methods per Order
- Showing how many times is plugin activated or deactivated
- wp_remote_post To external API multiple values with the same key
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Can’t access 3rd party API, code works on local server but not on wordpress
- Get a list of Product Categories inside a loop
- How to get data from a private API and add it to wordpress pages
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Not displaying Woocommerce product page in lightbox
- How to use information from the database in the front-end?
- Fetching users data from REST API
- wp rest api (v2) filter not working (404 error – rest_no_route)
- Hide ‘add to cart’ button for some products [duplicate]
- Change pricing in Woocommerce based on Category and Product [closed]
- Adding/ Removing actions for plugins
- Problem with conditional woocommerce custom checkout field
- what is the best way to create a premium plugin while also protecting your code
- Unable to sync woocommerce variations
- create web service for android app using wordpress website
- woocommerce blank page after clicking add to cart [closed]
- API Functions to Register and Show WordPress List Tables
- Extend WordPress REST API with Scheme Pro Plugin
- Unable to show 4 products in a row
- The plugin generated xxx characters of unexpected output during activation
- Hook for single product thumbnail
- wordpress Ajax success doesn’t return the value
- Predefine Product Variations for specific custom product type [closed]
- Create Custom Coupon Type
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- Template selector for woocommerce product