Plugin Directory

Changeset 3224589


Ignore:
Timestamp:
01/17/2025 07:11:00 PM (15 months ago)
Author:
skyword
Message:

Remove another collision of tracking script registration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skyword-publishing-api/tags/1.1.4/php/class-skyword-shortcode.php

    r3224587 r3224589  
    9999}
    100100
    101 function register_tracking_scripts() {
     101function register_api_tracking_scripts() {
    102102    wp_register_script( 'skyword-api-tracking', '//tracking.skyword.com/tracker.js', array(), null, array("strategy" => "async"));
    103103    wp_register_script( 'skyword-api-anonymous-tracking', '//tracking.skyword.com/tracker.js?anonymize=yes', array(), null, array("strategy" => "async"));
    104104}
    105105
    106 add_action( 'wp_enqueue_scripts', 'register_tracking_scripts' );
     106add_action( 'wp_enqueue_scripts', 'register_api_tracking_scripts' );
    107107
    108 add_action( 'wp_enqueue_scripts', 'register_tracking_scripts' );
    109108global $custom_shortcodes;
    110109$custom_shortcodes = new Skyword_API_Shortcode;
Note: See TracChangeset for help on using the changeset viewer.