//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) { return strpos($feed, ‘google_’) !== 0; }); }); //Facebook Feeds add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Facebook feeds from ISO4217 formatting return array_filter($feeds, function($feed)…Continue reading
// Force localization for all feeds add_filter(‘adt_product_feed_localize_price_args’, function($args) { $args[‘decimal_separator’] = ‘.’; $args[‘thousand_separator’] = ‘,’; return $args; }); add_filter(‘adt_pfp_localize_price_iso4217_feeds’, function($feeds) { // Remove all Google feeds from ISO4217 formatting return array_filter($feeds, function($feed) { return strpos($feed, ‘google_’) !== 0; }); });Continue reading
[Product Name] [Attribute 1] [Attribute 2]…Continue reading
/** * GSL Publication Auto-Tagger for WPCode * * Extracts keywords from teachPress publication titles and creates tags * for the tag cloud. Adds an admin page under the teachPress menu. * * WPCode Settings: * Code Type: PHP Snippet…Continue reading
add_filter( ‘woocommerce_email_order_items_args’, ‘bll_order_with_product_images’, 9999 ); function bll_order_with_product_images( $args ) { $args[‘show_image’] = true; return $args; }Continue reading
add_filter( ‘wwp_filter_wholesale_price_title_text’ , ‘my_filter_wholesale_price’, 99 , 1 ); function my_filter_wholesale_price ( $titleText ) { $settingTitleText = __(‘Wholesale Price:’, ‘woocommerce-wholesale-prices-premium’); return $settingTitleText; }Continue reading
/** * Allow Shop Managers to edit and promote wholesale users. */ function wws_add_shop_manager_user_editing_capability() { $shop_manager = get_role(‘shop_manager’); if ( ! $shop_manager ) { return; } // Only add capabilities if they don’t already exist if ( ! $shop_manager->has_cap(‘edit_users’) )…Continue reading