# learnpress/4.4.2/assets/js/admin/lp-duplicate-post.min.js

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

- Page: https://pluginprobe.com/plugins/learnpress/4.4.2/code/assets/js/admin/lp-duplicate-post.min.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.2/raw/assets/js/admin/lp-duplicate-post.min.js
- Modified: 2026-07-11T02:31:30+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.2/code/assets/js/admin/lp-duplicate-post.min.js#L10-L20`.

```javascript
!function(t){const a=function(a){a.preventDefault();const c=t(this).data("post-id");t.ajax({url:"",data:{"lp-ajax":"duplicator",id:c,nonce:lpGlobalSettings.nonce},success(t){(t=LP.parseJSON(t)).success?window.location.href=t.data:alert(t.data)}})};t(function(){t(document).on("click",".lp-duplicate-row-action .lp-duplicate-post",a)})}(jQuery);
```
