19 Snippets
<10 Favourites
<10 Downloads

How To Allow Shop Manager to Manage Feeds?

#-- Allow Shop Manager to Access Product Feed Menus --# function allow_feed_menus_to_shop_manager( $capability ) { if…

<10

Custom Availability Date for Products

/** * Availability Date Functionality * * Adds a custom availability date field to WooCommerce products…

<10

Unified Product ID for Facebook Feed || WPML || PFE

function adt_wpml_unified_product_id( $product_data, $feed, $product ) { // Only run for Facebook dynamic remarketing feed if(…

<10

Add Unified Product SKU with ID for Facebook Feed || WPML || PFE

function adt_wpml_unified_product_sku_id( $product_data, $feed, $product ) { // Check if the feed is for Facebook dynamic…

<10

Add Custom Attributes and Group Them

// Step 1: Add your custom attribute(s) to a named group function add_custom_grouped_attributes( $attributes ) {…

<10

Feed Generation Cron Script

This file will be used to run via cron and update feed based on the ID

<10

Custom Separator for Data Manipulation

The Data Manipulation default separator is a space. You can change this to a custom separator…

<10

Force localized currency for product feeds

This allows you to change the ISO 4217 for all the product feeds

<10

Remove ISO 4217 Format for specific feeds

//Google Feeds add_filter('adt_pfp_localize_price_iso4217_feeds', function($feeds) { // Remove all Google feeds from ISO4217 formatting return array_filter($feeds, function($feed)…

<10

Remove ISO 4217 for Google Feeds

// Force localization for all feeds add_filter('adt_product_feed_localize_price_args', function($args) { $args['decimal_separator'] = '.'; $args['thousand_separator'] = ','; return…

<10