NextGEN Ecommerce – apply the default pricelist to all of the existing galleries

use Imagely\NGG\Settings\Settings; use Imagely\NGGPro\Commerce\DataMappers\Gallery as GalleryMapper; function apply_default_pricelist_to_all_galleries() { $settings = Settings::get_instance(); $default_pricelist = $settings->get(‘ecommerce_default_pricelist’, null); if (!$default_pricelist) { return; } $mapper = GalleryMapper::get_instance(); $all_galleries = $mapper->find_all(); if ($all_galleries) { foreach ($all_galleries as $gallery) { $gallery->pricelist_id = $default_pricelist; $mapper->save($gallery); }…Continue reading

[advanced_tbsa_calculator]

/** * Shortcode: [advanced_tbsa_calculator] */ function advanced_tbsa_calculator_shortcode($atts) { ob_start(); ?> Parkland Modified Brooke Galveston Shriners–Cincinnati Rule of TenContinue reading

Shipstation live rates Gemini

/** * ShipStation Integration for WooCommerce – FINAL v5 * * – Fixes Apply Rate scope issue by making methods public. * – Ensures JS uses refreshed nonces correctly. */ if ( ! defined( ‘ABSPATH’ ) ) exit; // —…Continue reading

custom-email-activation-mailer-send

add_action(‘fluentform_submission_inserted’, function ($entryId, $formData, $form) { // Only run for a specific form ID (replace 5 with your form ID) if ($form->id != 5) { return; } $email = sanitize_email($formData[’email’]); $password = sanitize_text_field($formData[‘password’]); $username = sanitize_user($formData[‘username’] ?? explode(‘@’, $email)[0]); $display_name…Continue reading

Generates nofollow To Outbound Links

function add_nofollow_to_outbound_links($content) { // Get site URL for comparison $site_url = parse_url(home_url(), PHP_URL_HOST); // Use regex to find all anchor tags return preg_replace_callback( ‘#]*href=[“\’](.*?)[“\’][^>]*>#is’, function ($matches) use ($site_url) { $href = $matches[1]; $link_tag = $matches[0]; // Skip if it’s an…Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading