add_action(‘woocommerce_admin_order_data_after_order_details’, function($order){ if (!$order instanceof WC_Order) return; $sku_counts = []; foreach ($order->get_items() as $item) { $product = $item->get_product(); if (!$product) continue; $sku = $product->get_sku(); if (!$sku || $sku==”mostre01″) continue; $qty = $item->get_quantity(); if (!isset($sku_counts[$sku])) { $sku_counts[$sku] = 0; } $sku_counts[$sku]…Continue reading
// Determine the values to use in the script $local_silent_print_server = defined(‘LOCAL_SILENT_PRINT_SERVER’) ? (LOCAL_SILENT_PRINT_SERVER ? ‘true’ : ‘false’) : ‘false’; $open_etichete_pdf_new_table = defined(‘OPEN_ETICHETE_PDF_NEW_TABLE’) ? (OPEN_ETICHETE_PDF_NEW_TABLE ? ‘true’ : ‘false’) : ‘false’; $open_awb_pdf_new_table = defined(‘OPEN_AWB_PDF_NEW_TABLE’) ? (OPEN_AWB_PDF_NEW_TABLE ? ‘true’ : ‘false’)…Continue reading
!function (w, d, t) { w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=[“page”,”track”,”identify”,”instances”,”debug”,”on”,”off”,”once”,”ready”,”alias”,”group”,”enableCookie”,”disableCookie”,”holdConsent”,”revokeConsent”,”grantConsent”],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for( var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script") ;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)}; ttq.load('D0TAVPBC77UC6ES2KLK0'); ttq.page(); }(window, document, 'ttq');Continue reading
/** * Remove the field label from the top of the field * * @link https://wpforms.com/developers/how-to-create-a-form-with-floating-labels/ */ function wpf_dev_display_field_before( $field, $form_data ) { remove_action( ‘wpforms_display_field_before’, array( wpforms()->frontend, ‘field_label’ ), 15 ); } add_action( ‘wpforms_display_field_before’, ‘wpf_dev_display_field_before’, 10, 2 ); /** *…Continue reading
add_action(‘charitable_donor_loop_after_donor’, ‘example_charitable_donor_loop_after_donor’, 10, 2 ); function example_charitable_donor_loop_after_donor( $donor, $view_args ) { $user_id = $donor->get_user_id(); $campaign_id = ! empty ( $view_args[‘campaign’] ) ? $view_args[‘campaign’] : 0; if ( 0 === $campaign_id ) { return; } $args = array( ‘user_id’ => $user_id,…Continue reading
/** * Author: Sumaiya , Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-24575 * * This snippet redirects users after form submission based on their email. * If the user exists, they are sent to one page; if not, to another. */ add_filter(‘fluentform/submission_confirmation’, ‘custom_code_before_confirmation_msg_function_uniq’, 10,…Continue reading
{ “data”: [ { “event_name”: “Purchase”, “event_time”: 1748569223, “action_source”: “website”, “user_data”: { “em”: [ “7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068” ], “ph”: [ null ] }, “attribution_data”: { “attribution_share”: “0.3” }, “custom_data”: { “currency”: “USD”, “value”: “142.52” }, “original_event_data”: { “event_name”: “Purchase”, “event_time”: 1748569223 }…Continue reading
// Please note: This snippet will only show the last login date & time AFTER the snippet is activated. // The snippet has to be active to track the last login date & time. // Add a column to the…Continue reading