Changeset 3257123
- Timestamp:
- 03/17/2025 12:21:12 PM (13 months ago)
- Location:
- eleapis/tags
- Files:
-
- 1 edited
- 1 copied
-
1.0/eleapis.php (modified) (1 diff)
-
1.5.1 (copied) (copied from eleapis/trunk)
Legend:
- Unmodified
- Added
- Removed
-
eleapis/tags/1.0/eleapis.php
r3183605 r3257123 17 17 function eleapis_function() 18 18 { 19 $eleapis_textvar = get_option('eleapis_plugin_variable', ' eleapis bot script');19 $eleapis_textvar = get_option('eleapis_plugin_variable', ''); 20 20 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; 24 24 } 25 25
Note: See TracChangeset
for help on using the changeset viewer.