Add extra shipping providers for vendor tracking numbers (copy)

$shipping_providers = array( ‘Australia’ => array( ‘Australia Post’ => ‘https://auspost.com.au/mypost/track/#/details/%1$s’, ‘FedEx’ => ‘https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au’, ‘Fastway Couriers’ => ‘https://www.fastway.com.au/tools/track/?l=%1$s’, ), ‘Austria’ => array( ‘post.at’ => ‘https://www.post.at/sv/sendungsdetails?snr=%1$s’, ‘dhl.at’ => ‘https://www.dhl.at/content/at/de/express/sendungsverfolgung.html?brand=DHL&AWB=%1$s’, ‘DPD.at’ => ‘https://tracking.dpd.de/parcelstatus?locale=de_AT&query=%1$s’, ), ‘Brazil’ => array( ‘Correios’ => ‘http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=%1$s’, ), ‘Belgium’ =>…Continue reading

NoCache

/** * Disable caching ONLY for the margin calculator page. * Put this in its own WPCode PHP snippet set to Auto Insert -> Run Everywhere. */ add_action(‘send_headers’, function () { // Skip admin + ajax + REST if (is_admin()…Continue reading

Completely Disable Comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Global Branding

add_action( ‘init’, function() { $branding = get_field( ‘branding’, ‘option’ ); if ( empty( $branding ) ) { return; } $background = sanitize_hex_color( $branding[‘background’] ?? ” ) ?: ‘transparent’; $primary = sanitize_hex_color( $branding[‘primary’] ?? ” ) ?: ‘inherit’; $secondary = sanitize_hex_color(…Continue reading

Cron Support

/** * Plugin: Pipeline Unified Sync * Purpose: Ensure WP All Import runs from cron and reduce server load. * Add as WPCode “PHP Snippet” and activate. */ // Ensure WPAI runs when cron hits (don’t skip on feed check)…Continue reading

Global Branding

add_action( ‘init’, function() { $branding = get_field( ‘branding’, ‘option’ ); if ( empty( $branding ) ) { return; } $background = sanitize_hex_color( $branding[‘background’] ?? ” ) ?: ‘transparent’; $primary = sanitize_hex_color( $branding[‘primary’] ?? ” ) ?: ‘inherit’; $secondary = sanitize_hex_color(…Continue reading

Applying Custom Map Styles to the Map Field

add_filter( ‘wpforms_geolocation_forms_field_get_map_field_settings’, ‘wpf_geolocation_forms_field_get_map_field_settings’, 10, 3 ); function wpf_geolocation_forms_field_get_map_field_settings( $settings, $field, $form_data ): array { $settings = (array) $settings; if ( empty( $form_data[‘id’] ) ) { return $settings; } if ( (int) $form_data[‘id’] !== 111 ) { // TODO: Change 111…Continue reading

Filter Logic for Member Management Dashboard

add_shortcode(‘fw_row_filter’, function($atts, $content = null) { if (!$content) return ”; // Set up the incoming data variables $atts = shortcode_atts(array( ‘filter’ => ‘all’, ‘rvw_exp’ => ”, ‘fw_exp’ => ”, ‘bday1’ => ”, ‘bday2’ => ” ), $atts); $filter = sanitize_text_field($atts[‘filter’]);…Continue reading