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?
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- Add Products to user’s ID Woocommerce
- Multisite functions to communicate with individual site functions
- How does WooCommerce display a custom comment_type in Comment Admin?
- Custom Shipping method not showing in checkout
- How to prevent action in ajax request, when in admin side?
- Keep user’s privileges on accessing contents in JSON response
- Is it possible to set up multistore in Woocommerce? [closed]
- Best way to hook a custom url?
- How can I add an options page for my class based plugin?
- Sending WP posts to external API
- Woocommerce plugin for minimum order and add-to-card-step
- woocommerce payment gateway callback not firing [closed]
- 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]
- 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?
- 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
- 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
- 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
- woocommerce: Customize email with item total count
- 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
- Use Case: Multiple Shipping Methods per Order
- Showing how many times is plugin activated or deactivated
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- 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
- Hide ‘add to cart’ button for some products [duplicate]
- Change pricing in Woocommerce based on Category and Product [closed]
- Adding/ Removing actions for plugins
- 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
- 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
- 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
- WooCommerce REST API aborts connection [closed]
- move setting data from wordpress api to codestar freamwork
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- Accessing Correct Database to Create REST API Endpoint
- A multi-section WordPress store [closed]