at path:
ROOT
/
wp-content
/
plugins
/
optinmonster
/
assets
/
js
/
wc-marketing.js
run:
R
W
Run
Elementor
DIR
2025-12-13 10:18:39
R
W
Run
Utils
DIR
2025-12-13 10:18:39
R
W
Run
admin.js
1.08 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
block.json
476 By
2025-11-20 19:51:54
R
W
Run
Delete
Rename
editor.js
11.13 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
elementor.js
4.26 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
global.js
2.21 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
helper.js
4.73 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
mailpoet.js
1.13 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
metabox.js
1.88 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
om-format.js
617 By
2025-11-20 19:51:54
R
W
Run
Delete
Rename
om-settings.js
632 By
2025-11-20 19:51:54
R
W
Run
Delete
Rename
plugininstall.js
2.06 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
wc-marketing.js
1.53 KB
2025-11-20 19:51:54
R
W
Run
Delete
Rename
error_log
up
📄
wc-marketing.js
Save
/* ========================================================== * wc-marketing.js * ========================================================== * Copyright 2021 Awesome Motive. * https://awesomemotive.com * ========================================================== */ window.OMAPI_WooCommerce_Marketing = window.OMAPI_WooCommerce_Marketing || {}; (function (window, document, $, app, undefined) { 'use strict'; app.interval; /** * Add Education Box * * @since 2.1.0 * * @returns {void} */ app.insertEducationBox = function () { // When the Marketing Hub was introduced in 4.1, the class // name used for their cards was ".woocommerce-card". Here // we'll check for that first and use it if found. Otherwise, // we'll use the current class name. const $earlyCard = $('.woocommerce-card:nth-child(2)'); const $card = $earlyCard.length ? $earlyCard : $('.components-card:nth-child(2)'); const $newCard = $(document.getElementById('components-card-om')); if ($card.length) { $card.after($newCard.show()); } }; app.initBox = function () { if ($('.woocommerce-marketing-overview').length) { if (app.interval) { clearInterval(app.interval); } app.insertEducationBox(); } }; app.init = function () { // We have to wait for the Woo React app to finish before // we can insert our box, So we'll keep trying until we get // what we're looking for. app.interval = setInterval(() => app.initBox(), 1000); app.initBox(); }; $(app.init); })(window, document, jQuery, window.OMAPI_WooCommerce_Marketing);