Version Description
- Added: post count after posttypes
Download this release
Release Info
Developer | xylus |
Plugin | WP Bulk Delete |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- README.txt +11 -8
- assets/css/wp-bulk-delete-admin.css +49 -1
- includes/admin/admin-pages.php +2 -0
- includes/admin/support-page.php +127 -0
- includes/class-delete-api.php +54 -0
- includes/common-functions.php +15 -0
- includes/delele-posts-form-functions.php +5 -0
- includes/import-facebook-events-support.php +96 -0
- wp-bulk-delete.php +2 -1
README.txt
CHANGED
@@ -4,11 +4,11 @@ Donate link: http://xylusthemes.com
|
|
4 |
Tags: delete, bulk, clean, bulk delete, bulk clean, posts delete, delete all, mass delete, posts delete, delete posts, delete comments, delete users, delete meta, delete taxonomy, delete revision, wp clean, clean trash, bulk user delete, delete all, delete all users, delete all comments, delete all posts, trash, clean spam, delete with condition, delete with filter, remove
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -114,13 +114,13 @@ WP bulk Delete support below powerfull conditions and filters.
|
|
114 |
|
115 |
We are working on providing more options :)
|
116 |
|
117 |
-
|
118 |
|
119 |
-
*If you have found a bug/issue or have a feature request, then post them in [Support ticket][1]
|
120 |
-
*If you have a question about the plugin usage or need help to troubleshoot, then post about it in our [BulkWP Support forums][1]
|
121 |
-
*If you have a question about any of the addon or need help to troubleshoot the addons, then post about it in our [WP Bulk delete Support][1]
|
122 |
-
*If you like the Plugin, then kindly leave a review/feedback at [WordPress repo page][2]. This will help more people to discover the plugin.
|
123 |
-
*Checkout other [WordPress Plugins][3] that we have written
|
124 |
|
125 |
|
126 |
[1]: https://xylusthemes.com/support/
|
@@ -164,6 +164,9 @@ We are working on providing more options :)
|
|
164 |
|
165 |
== Changelog ==
|
166 |
|
|
|
|
|
|
|
167 |
= 1.1.0 =
|
168 |
* Added Delete Comments
|
169 |
* Added Delete Users
|
4 |
Tags: delete, bulk, clean, bulk delete, bulk clean, posts delete, delete all, mass delete, posts delete, delete posts, delete comments, delete users, delete meta, delete taxonomy, delete revision, wp clean, clean trash, bulk user delete, delete all, delete all users, delete all comments, delete all posts, trash, clean spam, delete with condition, delete with filter, remove
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
Delete posts, pages, comments, attachments, users, taxonomy terms and meta fields in bulk with different powerful filters and conditions.
|
12 |
|
13 |
== Description ==
|
14 |
|
114 |
|
115 |
We are working on providing more options :)
|
116 |
|
117 |
+
#### Support
|
118 |
|
119 |
+
* If you have found a bug/issue or have a feature request, then post them in [Support ticket][1]
|
120 |
+
* If you have a question about the plugin usage or need help to troubleshoot, then post about it in our [BulkWP Support forums][1]
|
121 |
+
* If you have a question about any of the addon or need help to troubleshoot the addons, then post about it in our [WP Bulk delete Support][1]
|
122 |
+
* If you like the Plugin, then kindly leave a review/feedback at [WordPress repo page][2]. This will help more people to discover the plugin.
|
123 |
+
* Checkout other [WordPress Plugins][3] that we have written
|
124 |
|
125 |
|
126 |
[1]: https://xylusthemes.com/support/
|
164 |
|
165 |
== Changelog ==
|
166 |
|
167 |
+
= 1.1.1 =
|
168 |
+
* Added: post count after posttypes
|
169 |
+
|
170 |
= 1.1.0 =
|
171 |
* Added Delete Comments
|
172 |
* Added Delete Users
|
assets/css/wp-bulk-delete-admin.css
CHANGED
@@ -20,4 +20,52 @@
|
|
20 |
height: 36px !important;
|
21 |
padding: 4px 20px !important;
|
22 |
font-size: 16px !important;
|
23 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
height: 36px !important;
|
21 |
padding: 4px 20px !important;
|
22 |
font-size: 16px !important;
|
23 |
+
}
|
24 |
+
|
25 |
+
.wpbd_well{
|
26 |
+
background-color: #f9f9f9;
|
27 |
+
border: 1px solid #ccc;
|
28 |
+
padding: 8px 20px 20px 20px;
|
29 |
+
}
|
30 |
+
|
31 |
+
.plugin_box {
|
32 |
+
width: 24%;
|
33 |
+
float: left;
|
34 |
+
background-color: #fff;
|
35 |
+
border-radius: 3px;
|
36 |
+
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
|
37 |
+
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
|
38 |
+
margin-bottom: 20px;
|
39 |
+
margin-left: 0.5%;
|
40 |
+
margin-right: 0.5%;
|
41 |
+
}
|
42 |
+
|
43 |
+
.plugin_box .plugin_img{
|
44 |
+
width: 100%;
|
45 |
+
border-top-left-radius: 3px;
|
46 |
+
border-top-right-radius: 3px;
|
47 |
+
}
|
48 |
+
.plugin_box h3{
|
49 |
+
margin: 0.5em 0;
|
50 |
+
}
|
51 |
+
.plugin_box .plugin_content{
|
52 |
+
padding: 10px 10px 20px 10px;
|
53 |
+
}
|
54 |
+
@media (max-width: 1300px ){
|
55 |
+
.plugin_box {
|
56 |
+
width: 32.333%;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
@media (max-width: 1080px ){
|
60 |
+
.plugin_box {
|
61 |
+
width: 48%;
|
62 |
+
margin-left: 1%;
|
63 |
+
margin-right: 1%;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
@media (max-width: 1080px ){
|
67 |
+
.plugin_box {
|
68 |
+
width: 100%;
|
69 |
+
float: none;
|
70 |
+
}
|
71 |
+
}
|
includes/admin/admin-pages.php
CHANGED
@@ -34,5 +34,7 @@ function wpbd_add_menu_pages() {
|
|
34 |
$xt_delete_taxonomy_page = add_submenu_page( 'delete_all_posts', __( 'Delete Terms', 'wp-bulk-delete' ), __( 'Delete Terms', 'wp-bulk-delete' ), 'manage_options', 'wpbd_delete_terms', 'wpbd_delete_terms_page' );
|
35 |
|
36 |
$xt_delete_taxonomy_page = add_submenu_page( 'delete_all_posts', __( 'Cleanup', 'wp-bulk-delete' ), __( 'Cleanup', 'wp-bulk-delete' ), 'manage_options', 'wpbd_cleanup', 'wpbd_render_cleanup_page' );
|
|
|
|
|
37 |
}
|
38 |
add_action( 'admin_menu', 'wpbd_add_menu_pages', 10 );
|
34 |
$xt_delete_taxonomy_page = add_submenu_page( 'delete_all_posts', __( 'Delete Terms', 'wp-bulk-delete' ), __( 'Delete Terms', 'wp-bulk-delete' ), 'manage_options', 'wpbd_delete_terms', 'wpbd_delete_terms_page' );
|
35 |
|
36 |
$xt_delete_taxonomy_page = add_submenu_page( 'delete_all_posts', __( 'Cleanup', 'wp-bulk-delete' ), __( 'Cleanup', 'wp-bulk-delete' ), 'manage_options', 'wpbd_cleanup', 'wpbd_render_cleanup_page' );
|
37 |
+
|
38 |
+
$xt_delete_support_page = add_submenu_page( 'delete_all_posts', __( 'Support & Help', 'wp-bulk-delete' ), __( 'Support & Help', 'wp-bulk-delete' ), 'manage_options', 'wpbd_support', 'wpbd_render_support_page' );
|
39 |
}
|
40 |
add_action( 'admin_menu', 'wpbd_add_menu_pages', 10 );
|
includes/admin/support-page.php
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin Support & help page
|
4 |
+
*
|
5 |
+
* @package WP_Bulk_Delete
|
6 |
+
* @subpackage Admin/Pages
|
7 |
+
* @copyright Copyright (c) 2016, Dharmesh Patel
|
8 |
+
* @since 1.1.1
|
9 |
+
*/
|
10 |
+
|
11 |
+
// Exit if accessed directly
|
12 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Support & help Page
|
16 |
+
*
|
17 |
+
* Render the Support & help page
|
18 |
+
*
|
19 |
+
* @since 1.1.1
|
20 |
+
* @return void
|
21 |
+
*/
|
22 |
+
function wpbd_render_support_page(){
|
23 |
+
$open_source_support_url = 'https://wordpress.org/support/plugin/wp-bulk-delete/';
|
24 |
+
$support_url = 'https://xylusthemes.com/support/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=freeplugin';
|
25 |
+
|
26 |
+
$review_url = 'https://wordpress.org/support/plugin/wp-bulk-delete/reviews/?rate=5#new-post';
|
27 |
+
$facebook_url = 'https://www.facebook.com/xylusinfo/';
|
28 |
+
$twitter_url = 'https://twitter.com/XylusThemes/';
|
29 |
+
?>
|
30 |
+
<div class="wrap">
|
31 |
+
<h2><?php esc_html_e('Support & Help','wp-bulk-delete'); ?></h2>
|
32 |
+
<div id="poststuff">
|
33 |
+
<div id="post-body" class="metabox-holder columns-2">
|
34 |
+
|
35 |
+
<div id="postbox-container-1" class="postbox-container">
|
36 |
+
<?php do_action('wpbd_admin_sidebar'); ?>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<div id="postbox-container-2" class="postbox-container">
|
40 |
+
|
41 |
+
<div class="wpbd_well">
|
42 |
+
<h3><?php esc_attr_e( 'Getting Support', 'wp-bulk-delete' ); ?></h3>
|
43 |
+
<p><?php _e( 'Thanks you for using Import Facebook Events, We are sincerely appreciate your support and we’re excited to see you using our plugins.','wp-bulk-delete' ); ?> </p>
|
44 |
+
<p><?php _e( 'Our support team is always around to help you.','wp-bulk-delete' ); ?></p>
|
45 |
+
|
46 |
+
<p><strong><?php _e( 'Looking for free support?','wp-bulk-delete' ); ?></strong></p>
|
47 |
+
<a class="button button-secondary" href="<?php echo $open_source_support_url; ?>" target="_blank" >
|
48 |
+
<?php _e( 'Open-source forum on WordPress.org','wp-bulk-delete' ); ?>
|
49 |
+
</a>
|
50 |
+
|
51 |
+
<p><strong><?php _e( 'Looking for more immediate support?','wp-bulk-delete' ); ?></strong></p>
|
52 |
+
<p><?php _e( 'We offer premium support on our website with the purchase of our premium plugins.','wp-bulk-delete' ); ?>
|
53 |
+
</p>
|
54 |
+
|
55 |
+
<a class="button button-primary" href="<?php echo $support_url; ?>" target="_blank" >
|
56 |
+
<?php _e( 'Contact us directly (Premium Support)','wp-bulk-delete' ); ?>
|
57 |
+
</a>
|
58 |
+
|
59 |
+
<p><strong><?php _e( 'Enjoying Import Facebook Events or have feedback?','wp-bulk-delete' ); ?></strong></p>
|
60 |
+
<a class="button button-secondary" href="<?php echo $review_url; ?>" target="_blank" >Leave us a review</a>
|
61 |
+
<a class="button button-secondary" href="<?php echo $twitter_url; ?>" target="_blank" >Follow us on Twitter</a>
|
62 |
+
<a class="button button-secondary" href="<?php echo $facebook_url; ?>" target="_blank" >Like us on Facebook</a>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<?php
|
66 |
+
$plugins = array();
|
67 |
+
$plugin_list = wpbulkdelete()->api->get_xyuls_themes_plugins();
|
68 |
+
if( !empty( $plugin_list ) ){
|
69 |
+
foreach ($plugin_list as $key => $value) {
|
70 |
+
$plugins[] = wpbulkdelete()->api->get_wporg_plugin( $key );
|
71 |
+
}
|
72 |
+
}
|
73 |
+
?>
|
74 |
+
<div class="" style="margin-top: 20px;">
|
75 |
+
<h3 class="setting_bar"><?php _e( 'Plugins you should try','import-facebook-events' ); ?></h3>
|
76 |
+
<?php
|
77 |
+
if( !empty( $plugins ) ){
|
78 |
+
foreach ($plugins as $plugin ) {
|
79 |
+
?>
|
80 |
+
<div class="plugin_box">
|
81 |
+
<?php if( $plugin->banners['low'] != '' ){ ?>
|
82 |
+
<img src="<?php echo $plugin->banners['low']; ?>" class="plugin_img" title="<?php echo $plugin->name; ?>">
|
83 |
+
<?php } ?>
|
84 |
+
<div class="plugin_content">
|
85 |
+
<h3><?php echo $plugin->name; ?></h3>
|
86 |
+
|
87 |
+
<?php wp_star_rating( array(
|
88 |
+
'rating' => $plugin->rating,
|
89 |
+
'type' => 'percent',
|
90 |
+
'number' => $plugin->num_ratings,
|
91 |
+
) );?>
|
92 |
+
|
93 |
+
<?php if( $plugin->version != '' ){ ?>
|
94 |
+
<p><strong><?php _e( 'Version:','import-facebook-events' ); ?> </strong><?php echo $plugin->version; ?></p>
|
95 |
+
<?php } ?>
|
96 |
+
|
97 |
+
<?php if( $plugin->requires != '' ){ ?>
|
98 |
+
<p><strong><?php _e( 'Requires:','import-facebook-events' ); ?> </strong> <?php _e( 'WordPress ','import-facebook-events' ); echo $plugin->requires; ?>+</p>
|
99 |
+
<?php } ?>
|
100 |
+
|
101 |
+
<?php if( $plugin->active_installs != '' ){ ?>
|
102 |
+
<p><strong><?php _e( 'Active Installs:','import-facebook-events' ); ?> </strong><?php echo $plugin->active_installs; ?>+</p>
|
103 |
+
<?php } ?>
|
104 |
+
|
105 |
+
<a class="button button-secondary" href="<?php echo admin_url( 'plugin-install.php?tab=plugin-information&plugin='. $plugin->slug.'&TB_iframe=1&width=772&height=600'); ?>" target="_blank">
|
106 |
+
<?php _e( 'Install Now','import-facebook-events' ); ?>
|
107 |
+
</a>
|
108 |
+
<a class="button button-primary" href="<?php echo $plugin->homepage . '?utm_source=crosssell&utm_medium=web&utm_content=supportpage&utm_campaign=freeplugin'; ?>" target="_blank">
|
109 |
+
<?php _e( 'Buy Now','import-facebook-events' ); ?>
|
110 |
+
</a>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
}
|
116 |
+
?>
|
117 |
+
<div style="clear: both;">
|
118 |
+
</div>
|
119 |
+
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
<br class="clear">
|
123 |
+
</div>
|
124 |
+
|
125 |
+
</div><!-- /.wrap -->
|
126 |
+
<?php
|
127 |
+
}
|
includes/class-delete-api.php
CHANGED
@@ -1057,4 +1057,58 @@ class WPBD_Delete_API {
|
|
1057 |
}
|
1058 |
return $metaWhere;
|
1059 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1060 |
}
|
1057 |
}
|
1058 |
return $metaWhere;
|
1059 |
}
|
1060 |
+
|
1061 |
+
/**
|
1062 |
+
* Get Plugin array
|
1063 |
+
*
|
1064 |
+
* @since 1.1.0
|
1065 |
+
* @return array
|
1066 |
+
*/
|
1067 |
+
public function get_xyuls_themes_plugins(){
|
1068 |
+
return array(
|
1069 |
+
'wp-event-aggregator' => esc_html__( 'WP Event Aggregator', 'wp-bulk-delete' ),
|
1070 |
+
'import-facebook-events' => esc_html__( 'Import Facebook Events', 'wp-bulk-delete' ),
|
1071 |
+
'import-eventbrite-events' => esc_html__( 'Import Eventbrite Events', 'wp-bulk-delete' ),
|
1072 |
+
'import-meetup-events' => esc_html__( 'Import Meetup Events', 'wp-bulk-delete' ),
|
1073 |
+
'event-schema' => esc_html__( 'Event Schema / Structured Data', 'wp-bulk-delete' ),
|
1074 |
+
);
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
/**
|
1078 |
+
* Get Plugin Details.
|
1079 |
+
*
|
1080 |
+
* @since 1.1.0
|
1081 |
+
* @return array
|
1082 |
+
*/
|
1083 |
+
public function get_wporg_plugin( $slug ){
|
1084 |
+
|
1085 |
+
if( $slug == '' ){
|
1086 |
+
return false;
|
1087 |
+
}
|
1088 |
+
|
1089 |
+
$transient_name = 'support_plugin_box'.$slug;
|
1090 |
+
$plugin_data = get_transient( $transient_name );
|
1091 |
+
if( false === $plugin_data ){
|
1092 |
+
if ( ! function_exists( 'plugins_api' ) ) {
|
1093 |
+
include_once ABSPATH . '/wp-admin/includes/plugin-install.php';
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
$plugin_data = plugins_api( 'plugin_information', array(
|
1097 |
+
'slug' => $slug,
|
1098 |
+
'is_ssl' => is_ssl(),
|
1099 |
+
'fields' => array(
|
1100 |
+
'banners' => true,
|
1101 |
+
'active_installs' => true,
|
1102 |
+
),
|
1103 |
+
) );
|
1104 |
+
|
1105 |
+
if ( ! is_wp_error( $plugin_data ) ) {
|
1106 |
+
set_transient( $transient_name, $plugin_data, 24 * HOUR_IN_SECONDS );
|
1107 |
+
} else {
|
1108 |
+
// If there was a bug on the Current Request just leave
|
1109 |
+
return false;
|
1110 |
+
}
|
1111 |
+
}
|
1112 |
+
return $plugin_data;
|
1113 |
+
}
|
1114 |
}
|
includes/common-functions.php
CHANGED
@@ -104,6 +104,21 @@ function wpbd_display_available_in_pro() {
|
|
104 |
}
|
105 |
add_action( 'wpbd_display_available_in_pro', 'wpbd_display_available_in_pro' );
|
106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
/**
|
108 |
* Function only for debuging
|
109 |
*
|
104 |
}
|
105 |
add_action( 'wpbd_display_available_in_pro', 'wpbd_display_available_in_pro' );
|
106 |
|
107 |
+
/**
|
108 |
+
* Return post count from posttype
|
109 |
+
*
|
110 |
+
* @since 1.0
|
111 |
+
* @return void
|
112 |
+
*/
|
113 |
+
function wpbd_get_posttype_post_count( $posttye ){
|
114 |
+
if( $posttye != '' ){
|
115 |
+
global $wpdb;
|
116 |
+
$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_type = %s", esc_attr( $posttye ) ) );
|
117 |
+
return $count;
|
118 |
+
}
|
119 |
+
return 0;
|
120 |
+
}
|
121 |
+
|
122 |
/**
|
123 |
* Function only for debuging
|
124 |
*
|
includes/delele-posts-form-functions.php
CHANGED
@@ -129,6 +129,11 @@ function wpbd_render_form_posttype(){
|
|
129 |
<label for="delete_post_type">
|
130 |
<input name="delete_post_type[]" class="delete_post_type" id="<?php echo $key_type; ?>" type="checkbox" value="<?php echo $key_type; ?>" <?php if( 'post' == $key_type ){ echo 'checked="checked"'; } ?>>
|
131 |
<?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
|
|
|
|
|
|
|
|
|
|
|
132 |
</label>
|
133 |
</fieldset>
|
134 |
<?php
|
129 |
<label for="delete_post_type">
|
130 |
<input name="delete_post_type[]" class="delete_post_type" id="<?php echo $key_type; ?>" type="checkbox" value="<?php echo $key_type; ?>" <?php if( 'post' == $key_type ){ echo 'checked="checked"'; } ?>>
|
131 |
<?php printf( __( '%s', 'wp-bulk-delete' ), $type ); ?>
|
132 |
+
<?php $post_count = wpbd_get_posttype_post_count( $key_type );
|
133 |
+
if( $post_count >= 0 ){
|
134 |
+
echo '('.$post_count .' '. $type .')';
|
135 |
+
}
|
136 |
+
?>
|
137 |
</label>
|
138 |
</fieldset>
|
139 |
<?php
|
includes/import-facebook-events-support.php
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// If this file is called directly, abort.
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
4 |
+
global $ife_events;
|
5 |
+
$open_source_support_url = 'https://wordpress.org/support/plugin/import-facebook-events/';
|
6 |
+
$support_url = 'https://xylusthemes.com/support/?utm_source=insideplugin&utm_medium=web&utm_content=sidebar&utm_campaign=freeplugin';
|
7 |
+
|
8 |
+
$review_url = 'https://wordpress.org/support/plugin/import-facebook-events/reviews/?rate=5#new-post';
|
9 |
+
$facebook_url = 'https://www.facebook.com/xylusinfo/';
|
10 |
+
$twitter_url = 'https://twitter.com/XylusThemes/';
|
11 |
+
|
12 |
+
?>
|
13 |
+
<div class="wpea_container">
|
14 |
+
<div class="wpea_row">
|
15 |
+
<div class="wpea-column support_well">
|
16 |
+
<h3><?php esc_attr_e( 'Getting Support', 'import-facebook-events' ); ?></h3>
|
17 |
+
<p><?php _e( 'Thanks you for using Import Facebook Events, We are sincerely appreciate your support and we’re excited to see you using our plugins.','import-facebook-events' ); ?> </p>
|
18 |
+
<p><?php _e( 'Our support team is always around to help you.','import-facebook-events' ); ?></p>
|
19 |
+
|
20 |
+
<p><strong><?php _e( 'Looking for free support?','import-facebook-events' ); ?></strong></p>
|
21 |
+
<a class="button button-secondary" href="<?php echo $open_source_support_url; ?>" target="_blank" >
|
22 |
+
<?php _e( 'Open-source forum on WordPress.org','import-facebook-events' ); ?>
|
23 |
+
</a>
|
24 |
+
|
25 |
+
<p><strong><?php _e( 'Looking for more immediate support?','import-facebook-events' ); ?></strong></p>
|
26 |
+
<p><?php _e( 'We offer premium support on our website with the purchase of our premium plugins.','import-facebook-events' ); ?>
|
27 |
+
</p>
|
28 |
+
|
29 |
+
<a class="button button-primary" href="<?php echo $support_url; ?>" target="_blank" >
|
30 |
+
<?php _e( 'Contact us directly (Premium Support)','import-facebook-events' ); ?>
|
31 |
+
</a>
|
32 |
+
|
33 |
+
<p><strong><?php _e( 'Enjoying Import Facebook Events or have feedback?','import-facebook-events' ); ?></strong></p>
|
34 |
+
<a class="button button-secondary" href="<?php echo $review_url; ?>" target="_blank" >Leave us a review</a>
|
35 |
+
<a class="button button-secondary" href="<?php echo $twitter_url; ?>" target="_blank" >Follow us on Twitter</a>
|
36 |
+
<a class="button button-secondary" href="<?php echo $facebook_url; ?>" target="_blank" >Like us on Facebook</a>
|
37 |
+
</div>
|
38 |
+
|
39 |
+
<?php
|
40 |
+
$plugins = array();
|
41 |
+
$plugin_list = $ife_events->admin->get_xyuls_themes_plugins();
|
42 |
+
if( !empty( $plugin_list ) ){
|
43 |
+
foreach ($plugin_list as $key => $value) {
|
44 |
+
$plugins[] = $ife_events->admin->get_wporg_plugin( $key );
|
45 |
+
}
|
46 |
+
}
|
47 |
+
?>
|
48 |
+
<div class="" style="margin-top: 20px;">
|
49 |
+
<h3 class="setting_bar"><?php _e( 'Plugins you should try','import-facebook-events' ); ?></h3>
|
50 |
+
<?php
|
51 |
+
if( !empty( $plugins ) ){
|
52 |
+
foreach ($plugins as $plugin ) {
|
53 |
+
?>
|
54 |
+
<div class="plugin_box">
|
55 |
+
<?php if( $plugin->banners['low'] != '' ){ ?>
|
56 |
+
<img src="<?php echo $plugin->banners['low']; ?>" class="plugin_img" title="<?php echo $plugin->name; ?>">
|
57 |
+
<?php } ?>
|
58 |
+
<div class="plugin_content">
|
59 |
+
<h3><?php echo $plugin->name; ?></h3>
|
60 |
+
|
61 |
+
<?php wp_star_rating( array(
|
62 |
+
'rating' => $plugin->rating,
|
63 |
+
'type' => 'percent',
|
64 |
+
'number' => $plugin->num_ratings,
|
65 |
+
) );?>
|
66 |
+
|
67 |
+
<?php if( $plugin->version != '' ){ ?>
|
68 |
+
<p><strong><?php _e( 'Version:','import-facebook-events' ); ?> </strong><?php echo $plugin->version; ?></p>
|
69 |
+
<?php } ?>
|
70 |
+
|
71 |
+
<?php if( $plugin->requires != '' ){ ?>
|
72 |
+
<p><strong><?php _e( 'Requires:','import-facebook-events' ); ?> </strong> <?php _e( 'WordPress ','import-facebook-events' ); echo $plugin->requires; ?>+</p>
|
73 |
+
<?php } ?>
|
74 |
+
|
75 |
+
<?php if( $plugin->active_installs != '' ){ ?>
|
76 |
+
<p><strong><?php _e( 'Active Installs:','import-facebook-events' ); ?> </strong><?php echo $plugin->active_installs; ?>+</p>
|
77 |
+
<?php } ?>
|
78 |
+
|
79 |
+
<?php //print_r( $plugin ); ?>
|
80 |
+
<a class="button button-secondary" href="<?php echo admin_url( 'plugin-install.php?tab=plugin-information&plugin='. $plugin->slug.'&TB_iframe=1&width=772&height=600'); ?>" target="_blank">
|
81 |
+
<?php _e( 'Install Now','import-facebook-events' ); ?>
|
82 |
+
</a>
|
83 |
+
<a class="button button-primary" href="<?php echo $plugin->homepage . '?utm_source=crosssell&utm_medium=web&utm_content=supportpage&utm_campaign=freeplugin'; ?>" target="_blank">
|
84 |
+
<?php _e( 'Buy Now','import-facebook-events' ); ?>
|
85 |
+
</a>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
<?php
|
89 |
+
}
|
90 |
+
}
|
91 |
+
?>
|
92 |
+
<div style="clear: both;">
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
</div>
|
wp-bulk-delete.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Bulk Delete
|
4 |
* Plugin URI: http://xylusthemes.com/plugins/wp-bulk-delete/
|
5 |
* Description: Bulk delete and cleanup anything like posts, comments, users, meta fields, taxonomy terms. with powerful filter options.
|
6 |
-
* Version: 1.1.
|
7 |
* Author: Xylus Themes
|
8 |
* Author URI: http://xylusthemes.com
|
9 |
* License: GPL-2.0+
|
@@ -141,6 +141,7 @@ class WP_Bulk_Delete{
|
|
141 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/terms/display-delete-terms.php';
|
142 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/cleanup/cleanup-form.php';
|
143 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/cleanup/cleanup-page.php';
|
|
|
144 |
}
|
145 |
|
146 |
/**
|
3 |
* Plugin Name: WP Bulk Delete
|
4 |
* Plugin URI: http://xylusthemes.com/plugins/wp-bulk-delete/
|
5 |
* Description: Bulk delete and cleanup anything like posts, comments, users, meta fields, taxonomy terms. with powerful filter options.
|
6 |
+
* Version: 1.1.1
|
7 |
* Author: Xylus Themes
|
8 |
* Author URI: http://xylusthemes.com
|
9 |
* License: GPL-2.0+
|
141 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/terms/display-delete-terms.php';
|
142 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/cleanup/cleanup-form.php';
|
143 |
require_once WPBD_PLUGIN_DIR . 'includes/admin/cleanup/cleanup-page.php';
|
144 |
+
require_once WPBD_PLUGIN_DIR . 'includes/admin/support-page.php';
|
145 |
}
|
146 |
|
147 |
/**
|