# learnpress/4.4.10/assets/js/dist/gutenberg/editor-check.min.js

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.10. 1 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.10/code/assets/js/dist/gutenberg/editor-check.min.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.10/raw/assets/js/dist/gutenberg/editor-check.min.js
- Modified: 2026-10-09T07:39:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.10/code/assets/js/dist/gutenberg/editor-check.min.js#L10-L20`.

```javascript
document.addEventListener("DOMContentLoaded",function(){const e=["single-lp_course","archive-lp_course","taxonomy-course_tag","taxonomy-course_category"];let t=null;const o=(()=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>(()=>{const o=wp?.data?.select("core/editor")?.getEditedPostAttribute("slug")||wp?.data?.select("core/editor")?.getCurrentPostId()||(()=>{const e=new URLSearchParams(window.location.search),t=e.get("p")?.replace(/^\/|\/$/g,"");return"template"===t?t:null})();o&&o!==t&&("home"!==o&&t&&t!==o&&(e.includes(o)||e.includes(t))&&window.location.reload(),t=o)})(...n),200)}})();wp?.data?.subscribe(()=>{o()})});
```
