Title: Missing ability to filter values
Last modified: July 29, 2018

---

# Missing ability to filter values

 *  Resolved [Frique](https://wordpress.org/support/users/frique/)
 * (@frique)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/missing-ability-to-filter-values/)
 * The plugin doesn’t seem to use official methods like “$product->get_name()” or“
   $product->get_description()” to gather product data, but rather queries the database
   directly. This goes against the modern WooCommerce way of doing things and more
   specifically it means I can’t manipulate the values that will be returned (in
   more advanced ways than the field mapping options that the plugin provides). 
   Am I missing something or is this something that might be improved upon?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Michel Jongbloed](https://wordpress.org/support/users/michel-jongbloed/)
 * (@michel-jongbloed)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/missing-ability-to-filter-values/#post-10541329)
 * Hello Freque,
 * Thanks for your topic!
 * Indeed some data is selected through queries to the database directly. This is
   done because the data items required to generate a specific feed can differ a
   lot from feed to feed. By making a configurable select query I can fetch the 
   correct data in one stroke, without having to run through all WooCommerce functions.
 * Wherever it is possible to use the official methods I do use them (see class-
   variations, the variation_conversion_table function)
 * If you want to manipulate the values that go in your feed, you can use the wppfm_feed_item_value
   filter ([https://gist.github.com/Auke1810/c62bb043926f539f9a99b418c06a3e6e](https://gist.github.com/Auke1810/c62bb043926f539f9a99b418c06a3e6e))
 * But I do agree with you that it would be better to always use the WooCommerce
   functions. I will have a better thought about this topic and maybe I can develop
   a better way to do this.
 *  Thread Starter [Frique](https://wordpress.org/support/users/frique/)
 * (@frique)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/missing-ability-to-filter-values/#post-10541383)
 * Hi Michel,
 * I did not know about the “wppfm_feed_item_value” filter. That will work just 
   fine for now. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Missing ability to filter values’ is closed to new replies.

 * ![](https://ps.w.org/wp-product-feed-manager/assets/icon-256x256.png?rev=3208464)
 * [WPMR Google Feed Manager for WooCommerce – Sell on Google Merchant Center & Shopping](https://wordpress.org/plugins/wp-product-feed-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-product-feed-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-product-feed-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-product-feed-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-product-feed-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-product-feed-manager/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [filter hooks](https://wordpress.org/support/topic-tag/filter-hooks/)
 * [object](https://wordpress.org/support/topic-tag/object/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frique](https://wordpress.org/support/users/frique/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/missing-ability-to-filter-values/#post-10541383)
 * Status: resolved