Files
2026-04-28 15:13:50 +02:00

26 lines
563 B
PHP

<?php
/**
* Setup hooks.
*
* @package WP Merchant Promotions Feed Manager/Functions
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Adds the Merchant Promotions Feed to the feed types.
*
* @param array $types Array with the feed types.
*
* @return array Array with all the feed types, including the Merchant Promotions Feed.
*/
function wppfm_pf_add_promotions_feed_type( $types ) {
$types['3'] = 'Google Merchant Promotions Feed';
return $types;
}
add_filter( 'wppfm_feed_types', 'wppfm_pf_add_promotions_feed_type' );