Title: PHP hooks &amp; filter
Last modified: May 18, 2026

---

# PHP hooks & filter

 *  [marianssen](https://wordpress.org/support/users/marianssen/)
 * (@marianssen)
 * [5 days, 15 hours ago](https://wordpress.org/support/topic/php-hooks-filter/)
 * Hi!
 * Are there any php hooks & filters to programatically control the product title
   format in the feed?

Viewing 1 replies (of 1 total)

 *  Plugin Support [Tanjir Al Mamun](https://wordpress.org/support/users/tanjiralmamun/)
 * (@tanjiralmamun)
 * [4 days, 14 hours ago](https://wordpress.org/support/topic/php-hooks-filter/#post-18912215)
 * Hi [@marianssen](https://wordpress.org/support/users/marianssen/),
 * Yes, the main hook for this is `adt_get_product_data`. It fires after all product
   data (including variation attribute appends) has been collected, giving you access
   to modify `$product_data['title']` before it’s written to the feed.
 *     ```wp-block-code
         add_filter( 'adt_get_product_data', function( $product_data, $feed, $product  ) {      // Example: append the SKU to every product title      if ( ! empty( $product_data['title'] ) && ! empty( $product_data['sku'] )   ) {          $product_data['title'] = $product_data['title'] . ' [' .  $product_data['sku'] . ']';      }      return $product_data;  }, 10, 3 );
       ```
   
 * The `$feed` parameter gives you access to the feed configuration (e.g., `$feed-
   >id`, `$feed->title`) if you want to apply the change only to specific feeds.
   The `$product` parameter is the standard `WC_Product` object.
 * For XML feeds specifically, `adt_product_feed_xml_attribute_value` lets you target
   a single attribute value at write-time:
 *     ```wp-block-code
         add_filter( 'adt_get_product_data', function( $product_data, $feed, $product ) {      // Example: append the SKU to every product title      if ( ! empty( $product_data['title'] ) && ! empty( $product_data['sku'] ) ) {          $product_data['title'] = $product_data['title'] . ' [' . $product_data['sku'] . ']';      }      return $product_data;  }, 10, 3 );
       ```
   
 * Hope that covers what you need. Let us know if you run into anything unexpected.
 * Thanks!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-hooks-filter%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woo-product-feed-pro/assets/icon-256x256.png?rev=3111496)
 * [Product Feed PRO for WooCommerce by AdTribes – Product Feeds for WooCommerce](https://wordpress.org/plugins/woo-product-feed-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-feed-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-feed-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-feed-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-feed-pro/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tanjir Al Mamun](https://wordpress.org/support/users/tanjiralmamun/)
 * Last activity: [4 days, 14 hours ago](https://wordpress.org/support/topic/php-hooks-filter/#post-18912215)
 * Status: not resolved