Plugin Directory

Changeset 3257123


Ignore:
Timestamp:
03/17/2025 12:21:12 PM (13 months ago)
Author:
eleapis
Message:

Deploying version 1.5.1

Location:
eleapis/tags
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • eleapis/tags/1.0/eleapis.php

    r3183605 r3257123  
    1717function eleapis_function()
    1818{
    19   $eleapis_textvar = get_option('eleapis_plugin_variable', 'eleapis bot script');
     19  $eleapis_textvar = get_option('eleapis_plugin_variable', '');
    2020
    21     wp_register_script('eleapis_script', 'https://cdn.express-chat.com/website-bot.js', array(), '1.0.0', true);
    22     wp_enqueue_script('eleapis_script');
    23     wp_add_inline_script('eleapis_script', esc_html($eleapis_textvar), 'after');
     21  $custom_js = "<script id='messenger-widget-b' src='https://cdn.express-chat.com/website-bot.js' defer>${eleapis_textvar}</script>";
     22  // Output the JavaScript code to the head
     23  echo $custom_js;
    2424}
    2525
Note: See TracChangeset for help on using the changeset viewer.