// 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
//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; });Continue reading
/** * WPForms Quiz — Save results as Entry Note * * Automatically adds a note to each quiz entry with the quiz results. * Supports all three quiz types: Graded, Personality, and Weighted. * * @link https://wpforms.com/developers/wpforms_process_entry_save/ */ /**…Continue reading
// 1. Process the automatic entry submission on click add_action(‘wp_loaded’, ‘wpcode_process_manual_log_187’); function wpcode_process_manual_log_187() { if (!isset($_GET[‘trigger_log’]) || !isset($_GET[‘parent_id’])) { return; } $parent_entry_id = intval($_GET[‘parent_id’]); if (empty($parent_entry_id)) { return; } $form_id = 187; $current_user_id = get_current_user_id(); // Map form payload variables…Continue reading
/** * Customize the error message shown on the WPForms Password Reset form * when the reset link is invalid or expired. * * @link https://wpforms.com/developers/change-validation-messages-for-user-registration-addon/ * * @param string $message The default error message. * @return string */ function…Continue reading
/** * Helper: sum product-only sales (excludes shipping) for one affiliate. * Filters to WooCommerce context so the dataset matches the SALES table. */ function affwp_product_only_sales( $affiliate_id, $status_array ) { $total = 0.0; $referrals = affiliate_wp()->referrals->get_referrals( array( ‘affiliate_id’ => absint(…Continue reading
add_filter( ‘get_post_metadata’, function( $value, $object_id, $meta_key, $single ) { static $running = false; if ( $running ) { return $value; } $intercepted = array( ‘_mepr_coupons_discount_amount’, ‘_mepr_coupons_discount_type’ ); if ( ! in_array( $meta_key, $intercepted, true ) ) { return $value; }…Continue reading
add_filter(‘ninja_table_rendering_table_vars’, function ($tableVars, $tableId) { if (empty($tableVars[‘provider’]) || $tableVars[‘provider’] !== ‘raw_sql’) { return $tableVars; } if (empty($tableVars[‘render_type’]) || $tableVars[‘render_type’] !== ‘ajax_table’) { return $tableVars; } $perChunk = function_exists(‘ninjaTablePerChunk’) ? (int) ninjaTablePerChunk($tableId) : 3000; if ($perChunk < 1) { return $tableVars;…Continue reading