Version Description
- Added support for WordPress 4.6
- Added support for PHP 5.6
Download this release
Release Info
Developer | copydelete |
Plugin | Duplicate Post |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- copy-delete-posts.php +4 -4
- menu/configuration.php +1 -1
- readme.txt +199 -196
copy-delete-posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Copy & Delete Posts
|
4 |
* Plugin URI: https://copy-delete-posts.com
|
5 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Copy Delete Posts
|
8 |
* Author URI: https://copy-delete-posts.com/
|
9 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
@@ -17,7 +17,7 @@ if (!defined('ABSPATH')) exit;
|
|
17 |
*/
|
18 |
|
19 |
// Plugin constants
|
20 |
-
define('CDP_VERSION', '1.0.
|
21 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
22 |
define('CDP_SCRIPT_DEBUG', false);
|
23 |
$cdp_plug_url = plugins_url('', __FILE__);
|
@@ -162,7 +162,7 @@ if (!defined('ABSPATH')) exit;
|
|
162 |
*/
|
163 |
add_action('admin_enqueue_scripts', function () {
|
164 |
if (cdp_check_permissions(wp_get_current_user()) == false) return;
|
165 |
-
if (wp_doing_ajax()) return; global $cdp_plug_url;
|
166 |
|
167 |
global $pagenow, $post;
|
168 |
$screen = get_current_screen();
|
@@ -212,7 +212,7 @@ if (!defined('ABSPATH')) exit;
|
|
212 |
*/
|
213 |
add_action('wp_enqueue_scripts', function () {
|
214 |
if (cdp_check_permissions(wp_get_current_user()) == false) return;
|
215 |
-
if (wp_doing_ajax() || (!(is_single() || is_page()))) return; global $cdp_plug_url;
|
216 |
|
217 |
$ver = preg_replace('#[^\pL\pN/-]+#', '', CDP_VERSION);
|
218 |
$min = defined('CDP_SCRIPT_DEBUG') && CDP_SCRIPT_DEBUG ? '' : '.min';
|
3 |
* Plugin Name: Copy & Delete Posts
|
4 |
* Plugin URI: https://copy-delete-posts.com
|
5 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
6 |
+
* Version: 1.0.8
|
7 |
* Author: Copy Delete Posts
|
8 |
* Author URI: https://copy-delete-posts.com/
|
9 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
17 |
*/
|
18 |
|
19 |
// Plugin constants
|
20 |
+
define('CDP_VERSION', '1.0.8');
|
21 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
22 |
define('CDP_SCRIPT_DEBUG', false);
|
23 |
$cdp_plug_url = plugins_url('', __FILE__);
|
162 |
*/
|
163 |
add_action('admin_enqueue_scripts', function () {
|
164 |
if (cdp_check_permissions(wp_get_current_user()) == false) return;
|
165 |
+
if (function_exists('wp_doing_ajax') && wp_doing_ajax()) return; global $cdp_plug_url;
|
166 |
|
167 |
global $pagenow, $post;
|
168 |
$screen = get_current_screen();
|
212 |
*/
|
213 |
add_action('wp_enqueue_scripts', function () {
|
214 |
if (cdp_check_permissions(wp_get_current_user()) == false) return;
|
215 |
+
if ((function_exists('wp_doing_ajax') && wp_doing_ajax()) || (!(is_single() || is_page()))) return; global $cdp_plug_url;
|
216 |
|
217 |
$ver = preg_replace('#[^\pL\pN/-]+#', '', CDP_VERSION);
|
218 |
$min = defined('CDP_SCRIPT_DEBUG') && CDP_SCRIPT_DEBUG ? '' : '.min';
|
menu/configuration.php
CHANGED
@@ -20,7 +20,7 @@ if (!defined('ABSPATH')) exit;
|
|
20 |
$current_screen = get_current_screen();
|
21 |
|
22 |
if (!is_object($current_screen)) return;
|
23 |
-
if (wp_doing_ajax()) return;
|
24 |
|
25 |
wp_enqueue_script('cdp');
|
26 |
wp_enqueue_script('jquery-ui-draggable');
|
20 |
$current_screen = get_current_screen();
|
21 |
|
22 |
if (!is_object($current_screen)) return;
|
23 |
+
if (function_exists('wp_doing_ajax') && wp_doing_ajax()) return;
|
24 |
|
25 |
wp_enqueue_script('cdp');
|
26 |
wp_enqueue_script('jquery-ui-draggable');
|
readme.txt
CHANGED
@@ -1,196 +1,199 @@
|
|
1 |
-
=== Copy
|
2 |
-
Contributors: CopyDeletePosts, copydelete
|
3 |
-
Tags: Copy
|
4 |
-
Requires at least: 4.
|
5 |
-
Tested up to: 5.4.2
|
6 |
-
Stable tag: 1.0.
|
7 |
-
License: GPLv3
|
8 |
-
Requires PHP:
|
9 |
-
|
10 |
-
Copy
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
Massively increase your WordPress productivity!
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
And why is it
|
19 |
-
|
20 |
-
- Duplicate
|
21 |
-
- Create a
|
22 |
-
- Create one
|
23 |
-
-
|
24 |
-
-
|
25 |
-
-
|
26 |
-
|
27 |
-
You can
|
28 |
-
|
29 |
-
**How to use it**
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
[youtube https://youtu.be/1KXLuKhNCR4]
|
34 |
-
|
35 |
-
After installation you'll see a new copy
|
36 |
-
|
37 |
-
- Copy page or duplicate post instantly with
|
38 |
-
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
-
|
44 |
-
-
|
45 |
-
-
|
46 |
-
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
-
|
59 |
-
-
|
60 |
-
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
-
|
68 |
-
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
-
|
80 |
-
-
|
81 |
-
-
|
82 |
-
-
|
83 |
-
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
*
|
153 |
-
|
154 |
-
|
155 |
-
*
|
156 |
-
*
|
157 |
-
|
158 |
-
|
159 |
-
*
|
160 |
-
|
161 |
-
|
162 |
-
*
|
163 |
-
*
|
164 |
-
*
|
165 |
-
|
166 |
-
|
167 |
-
*
|
168 |
-
|
169 |
-
|
170 |
-
*
|
171 |
-
|
172 |
-
|
173 |
-
*
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
*
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
*
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
*
|
187 |
-
|
188 |
-
|
189 |
-
*
|
190 |
-
|
191 |
-
|
192 |
-
*
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
|
|
|
|
|
1 |
+
=== Copy Page ===
|
2 |
+
Contributors: CopyDeletePosts, copydelete
|
3 |
+
Tags: Copy page, Copy post, Duplicate pages, Duplicate posts, Clone pages, Clone posts, Delete pages, Delete posts, Duplicate post, Duplicator, Copy pages, Copy posts
|
4 |
+
Requires at least: 4.6
|
5 |
+
Tested up to: 5.4.2
|
6 |
+
Stable tag: 1.0.8
|
7 |
+
License: GPLv3
|
8 |
+
Requires PHP: 5.6
|
9 |
+
|
10 |
+
Copy page copy pages
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
Massively increase your WordPress productivity!
|
15 |
+
|
16 |
+
Copy Page plugin makes it super-easy to duplicate pages or copy posts - and delete them again!
|
17 |
+
|
18 |
+
And why is it handy to duplicate pages? Here are just some of the use cases:
|
19 |
+
|
20 |
+
- Duplicate pages to make short work of using again the same elements you repeatedly use (e.g. text paragraphs, images, video, featured image, etc.)
|
21 |
+
- Create a variation of a page or post fast to modify it and compare side by side (for yourself, your client or company)
|
22 |
+
- Create one perfect set of page templates and then re-use them for different projects, clients or products
|
23 |
+
- Apply a facelift to a specific page but keep the older version in case you want to switch back to it anytime
|
24 |
+
- Make a "holiday special" page template and use it for different holidays with respective adjustments
|
25 |
+
- Create duplicates for pages used in page builders with their custom settings
|
26 |
+
|
27 |
+
You can as well run a load-test on your server by duplicating as much as 1,000 pages, and track how the server behaves. Copy Page plugin also makes it super-easy for you to bulk-delete pages and posts whenever you feel it’s time for a clean-up!
|
28 |
+
|
29 |
+
**How to use it**
|
30 |
+
|
31 |
+
Two-minute video tutorial and you are ready to use it, that’s how simple Copy Page is!
|
32 |
+
|
33 |
+
[youtube https://youtu.be/1KXLuKhNCR4]
|
34 |
+
|
35 |
+
After installation you'll see a new copy page button which, on mouse-over, displays a tooltip (see screenshot) which allows you to copy pages or copy posts with various options:
|
36 |
+
|
37 |
+
- Copy page or duplicate post instantly with a single click
|
38 |
+
- Expand to see additional copy page options and specify which elements should be copied for the current copy page or copy post action
|
39 |
+
|
40 |
+
The new copy page button will be available on:
|
41 |
+
|
42 |
+
- All Pages and All Posts screens
|
43 |
+
- Edit screens (duplicate page or duplicate post on the respective edit page/post screens)
|
44 |
+
- Admin bar (at the top)
|
45 |
+
- Bulk-option to copy pages or copy posts on All Pages and All Posts screens
|
46 |
+
- Gutenberg editor
|
47 |
+
|
48 |
+
|
49 |
+
You can hide copy page or copy post button on any of these places from the Copy Page plugin menu (Section: Other options). Copy page function on the editor screens allows fast and easy multiplying of pages you are working on at the moment (and open it in the new browser tab immediately, too), so you can quickly make a couple of variations, pick whichever you like better, and afterward use the Delete duplicate posts/pages tool of Copy Page plugin to remove duplicate(s) that you dislike.
|
50 |
+
|
51 |
+
Copy Page plugin also provides an intuitive naming tool to define how the cloned pages or posts will be named (e.g. you can add the time and date of copying, or incremental counter, etc.). This way you can multiply page that will have a short name, e.g. “ExamplePage - #4” - where the number at the end will increase with each copy made; or you can duplicate page with much more detailed name of the copy, such as: “ExamplePage copied at 14:22:58 on Sunday, December 1st, 2021” - thankfully to PHP date/time shortcodes being supported in the custom date settings. Long names often make it easy to differentiate the clone post, either to remove duplicate or to e.g. edit it.
|
52 |
+
|
53 |
+
Want to duplicate page but also it’s child-page(s)? You can multiply pages altogether with child-pages with all the copy settings currently applied to the parent page copy.
|
54 |
+
|
55 |
+
Other options available when you copy pages:
|
56 |
+
|
57 |
+
- Specify where you will be navigated to after you copy page or copy post
|
58 |
+
- Specify which users (WP roles) will be granted to copy pages or copy posts
|
59 |
+
- Specify which content types will be allowed to be copied - copy pages, copy posts, and copy custom post types
|
60 |
+
- Enable/disable the display of a reference to the original of copied page or post
|
61 |
+
|
62 |
+
Not only can you clone pages or clone posts easily, but the Copy Page plugin also provides a highly developed tool to Delete duplicate posts/pages.
|
63 |
+
|
64 |
+
As part of this cleanup process, you can specify:
|
65 |
+
|
66 |
+
- Where the plugin will look for duplicates (i.e. delete pages, delete posts or delete custom posts)
|
67 |
+
- What will be considered as a duplicate page or duplicate post (i.e. will it be the same title, slug, excerpt or word count)
|
68 |
+
- Which version of duplicates you want to keep: oldest version (original) or newest version (the latest duplicate)
|
69 |
+
|
70 |
+
Even if you used this replicator tool to multiply pages or multiply posts in huge numbers, and you want to use this tool to trash duplicates every now and then, but leave out a few specific ones - you will be able to easily find duplicates when you use our duplicates scanner. After setting the parameters to find duplicates, you can use a search box to make sure you don’t delete duplicates you don’t want to, or remove duplicates to the last one (original included!). The duplicate checker tool can help you find duplicate and immediately visually check the clone page by clicking on the URL/slug link, in case you can’t tell by the name or the date clone page was created.
|
71 |
+
|
72 |
+
You can select to throttle the delete pages or delete posts process - which you may want to do when you’re on a slow server (note, however: the plugin codes to delete posts or delete pages are already optimized, so usually there shouldn’t be an issue).
|
73 |
+
|
74 |
+
Copy Page is a cloner tool with a beautiful, modern design and features going beyond today’s post duplicator tools. We hope that Copy Page will become your favorite posts duplicator tool :)
|
75 |
+
|
76 |
+
The free Copy Page plugin offers a lot of options - if you want even more options to copy pages or copy posts, then check out the [premium Copy Page plugin](https://sellcodes.com/CylMIdJD) which offers the following additional features:
|
77 |
+
|
78 |
+
- Use several configuration sets to copy pages or delete posts - useful when you want to quickly switch between the copy types, without having to go to the settings page.
|
79 |
+
- Export and import configuration sets - a handy tool for all of us who manage multiple sites and regularly replicate posts.
|
80 |
+
- Also include information from third party plugins when you copy pages (e.g. Yoast-information linked to pages/posts)
|
81 |
+
- Replicate pages across multisite will also prove to be a real time-saver for multisite administrators
|
82 |
+
- Automatically delete pages or posts - extremely useful for users that multiply posts or pages at high levels.
|
83 |
+
- Apply automatic redirects for deleted pages or posts
|
84 |
+
|
85 |
+
Just try it out! You'll love it :)
|
86 |
+
|
87 |
+
|
88 |
+
== Installation ==
|
89 |
+
|
90 |
+
= Admin Installer via search =
|
91 |
+
1. Visit the Add New plugin screen and search for "Copy & Delete Posts".
|
92 |
+
2. Click the "Install Now" button.
|
93 |
+
3. Activate the plugin.
|
94 |
+
4. The plugin should be shown below settings menu.
|
95 |
+
|
96 |
+
= Admin Installer via zip =
|
97 |
+
1. Visit the Add New plugin screen and click the "Upload Plugin" button.
|
98 |
+
2. Click the "Browse..." button and select the zip file of our plugin.
|
99 |
+
3. Click "Install Now" button.
|
100 |
+
4. Once uploading is done, activate Copy & Delete Posts.
|
101 |
+
5. The plugin should be shown below the settings menu.
|
102 |
+
|
103 |
+
== Frequently Asked Questions ==
|
104 |
+
|
105 |
+
= It seems the post deletion process doesn’t work. Why? =
|
106 |
+
If you are trying to delete posts and it doesn’t work try to append your wp-config.php with this line of code:
|
107 |
+
`define('ALTERNATE_WP_CRON', true);`
|
108 |
+
Does it work if you try to delete posts then? If not, please reach out to us in the support forum.
|
109 |
+
|
110 |
+
= When I copy post or copy page, why is title of the duplicate not the same? =
|
111 |
+
If you copy posts or copy pages and want the new versions to have exactly the same title as the original post, make sure that prefix and suffix fields are blank in the “What name(s) should the copies have?” section of the Copy Delete Posts plugin area in the WordPress Dashboard.
|
112 |
+
|
113 |
+
= If I duplicate posts, how do I know what their original page was? =
|
114 |
+
It can be a challenge to keep track of the original content if you duplicate posts. To prevent this we suggest to not leave the prefix and suffix fields empty (which define the name of the new posts) if you duplicate posts. However, even if you want to duplicate posts without any prefix or suffix, you can solve the issue as follows: Go to section “Other options” (on the duplicate post plugin configuration page), and at the bottom of this section you will find the option “Show reference to original item?”. Check this to ensure you can always keep track of original posts when duplicate pages or posts.
|
115 |
+
|
116 |
+
= Can I limit who can duplicate posts on my site? =
|
117 |
+
By default only Administrators can access the plugin and copy posts or copy pages. You can extend these permissions to other user roles by going to the section “Other options”, and then tick boxes next to WP user roles that you want to give permission to. Then also those roles can duplicate posts (or delete posts).
|
118 |
+
|
119 |
+
= I want to duplicate posts *only*, i.e. not duplicate pages. Is that possible? =
|
120 |
+
You can limit the features to duplicate posts only by going to the “Other options” - section and select where it says “Content types which can be copied” to only copy posts, copy pages, copy custom posts or all of these.
|
121 |
+
|
122 |
+
= How can I make bulk copies? =
|
123 |
+
If you want to duplicate posts en masse, select the copy posts option in the “Bulk actions” menu. You’ll see the lightbox asking you to specify your duplicate post options (i.e. which elements to copy).
|
124 |
+
|
125 |
+
= I can duplicate posts but it takes a long time. Why? =
|
126 |
+
If you duplicate posts and it takes long, then you may have selected to include attachments in the duplicate posts configurations. Go to the second section titled “Which elements should be copied?” and de-select the attachments option to exclude those when you duplicate posts.
|
127 |
+
|
128 |
+
= Can I bulk delete posts created by this plugin? =
|
129 |
+
To easily clean posts or delete duplicate pages that were created by this plugin, go to ”Delete duplicate posts or pages” section, tab “Manual cleanup”. Select Posts, Pages and Custom Posts, and uncheck all other filters, then hit the Scan button. In the empty results list, you will see the message “Click here to show all copies…” - “here” link will show you all posts and pages created by our multiplier plugin.
|
130 |
+
|
131 |
+
= Which dupicate post features do you have which the other plugins don’t? =
|
132 |
+
Other duplicate post plugins mostly only allow you to duplicate post to the same site. With the Copy Delete Posts plugin (premium version) you can duplicate post to other sites, e.g. duplicate post to a multisite, or duplicate post to a site on a different domain altogether (we’re currently working on this duplicate post functionality). Also, other duplicate post plugins don’t give you the granularity to define how to duplicate post, e.g. which elements specifically should appear on the cloned posts.
|
133 |
+
|
134 |
+
= Is this plugin GDPR friendly? =
|
135 |
+
Copy Delete Posts WordPress plugin doesn’t store any site visitor information so it is completely GDPR friendly.
|
136 |
+
|
137 |
+
|
138 |
+
== Screenshots ==
|
139 |
+
1. Plugin settings page
|
140 |
+
2. Copy preset settings
|
141 |
+
3. Customizable naming system
|
142 |
+
4. Global settings & permission system
|
143 |
+
5. Manual clean up
|
144 |
+
6. Quick-copy tooltip
|
145 |
+
7. Tooltip individual copy
|
146 |
+
8. Copy from Gutenberg editor
|
147 |
+
|
148 |
+
== Changelog ==
|
149 |
+
|
150 |
+
= 1.0.8 =
|
151 |
+
* Added support for WordPress 4.6
|
152 |
+
* Added support for PHP 5.6
|
153 |
+
|
154 |
+
= 1.0.7 =
|
155 |
+
* [Premium] Automatic Cleanup
|
156 |
+
* Updated banner tooltips
|
157 |
+
* Added more info to Admin Bar entries
|
158 |
+
* Added new type to Admin Bar notifications "Auto Cleanup"
|
159 |
+
* Changed logic of filter (More title options -> option "Yes")
|
160 |
+
|
161 |
+
= 1.0.6 =
|
162 |
+
* [Premium] WooCommerce integration
|
163 |
+
* [Premium] Advanced Filters for deletion process
|
164 |
+
* WooCommerce edit-screen copy fix
|
165 |
+
* Modal overlay display on front-end fix
|
166 |
+
* Improved custom posts detection
|
167 |
+
* Stability improvements
|
168 |
+
|
169 |
+
= 1.0.5 =
|
170 |
+
* Auto-refresh list of notifications
|
171 |
+
* Fixed issue when notification wasn't updated correctly
|
172 |
+
* Improvement search engine (Deletion Section)
|
173 |
+
* Scrollbar fix on plugin configuration page
|
174 |
+
|
175 |
+
= 1.0.4 =
|
176 |
+
* This is Hotfix
|
177 |
+
* Fixed issue during activation which shows "Header Error"
|
178 |
+
|
179 |
+
= 1.0.3 =
|
180 |
+
* Tested with new version of WordPress
|
181 |
+
* Fixed visual issue with deletion process
|
182 |
+
|
183 |
+
= 1.0.2 =
|
184 |
+
* Added new cool GIF inside the intro
|
185 |
+
* Added photos to the screenshots library
|
186 |
+
* Removed unnecessary stuff in code
|
187 |
+
|
188 |
+
= 1.0.1 =
|
189 |
+
* Improved deletion process above 800 posts
|
190 |
+
* Fixed sorting issues
|
191 |
+
* Fixed specified copies options (via tooltip)
|
192 |
+
* Fixed tooltip (flashing) issues on smaller screens
|
193 |
+
|
194 |
+
= 1.0.0 =
|
195 |
+
* Initial release
|
196 |
+
|
197 |
+
== Upgrade Notice ==
|
198 |
+
= 1.0.0 =
|
199 |
+
* Initial release
|