Easy Coming Soon - Version 2.0.1

Version Description

  1. Added code snippet to redirect user to plugin settings page on plugin activation.
Download this release

Release Info

Developer priyanshu.mittal
Plugin Icon 128x128 Easy Coming Soon
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0 to 2.0.1

Files changed (2) hide show
  1. coming-soon-plugin.php +26 -1
  2. readme.txt +5 -2
coming-soon-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
- Version: 2.0
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://easycomingsoon.com/
8
  Plugin URI: http://easycomingsoon.com/
@@ -97,6 +97,31 @@ function cmgs_my_custom_menu()
97
 
98
  }
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  /*
102
  * Construction
2
  /*
3
  Plugin Name:Easy Coming Soon
4
  Description: Easy coming Soon plugin allows you to quickly create a launch / under construction page for your website. Collect E-mails and connect with users on Social Networks.
5
+ Version: 2.0.1
6
  Author:Ankit Agarwal, Priyanshu Mittal
7
  Author URI: http://easycomingsoon.com/
8
  Plugin URI: http://easycomingsoon.com/
97
 
98
  }
99
 
100
+ register_activation_hook( __FILE__, 'coming_soon_screen_activate' );
101
+ function coming_soon_screen_activate() {
102
+ set_transient( '_coming_soon_screen_activation_redirect', true, 30 );
103
+ }
104
+
105
+ add_action( 'admin_init', 'coming_soon_screen_do_activation_redirect' );
106
+ function coming_soon_screen_do_activation_redirect() {
107
+ // if plugin not activated
108
+ if ( ! get_transient( '_coming_soon_screen_activation_redirect' ) ) {
109
+ return;
110
+ }
111
+
112
+ // Delete the redirect transient
113
+ delete_transient( '_coming_soon_screen_activation_redirect' );
114
+
115
+ // if activate admin
116
+ if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
117
+ return;
118
+ }
119
+
120
+ // Redirect the plugin main page
121
+ wp_safe_redirect( add_query_arg( array( 'page' => 'coming_soon' ), admin_url( 'admin.php' ) ) );
122
+ }
123
+
124
+
125
 
126
  /*
127
  * Construction
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: a.ankit,priyanshu.mittal
3
  Donate link: http://easycomingsoon.com/
4
  Tags: coming soon wordpress plugin,coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,wordpress under construction page,wordpress landing page, ultimate coming soon page, ultimate landing page, wordpress maintenance mode plugin
5
  Requires at least: 3.3+
6
- Tested up to: 4.8.3
7
- Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,9 @@ In case you face any problem, contact us [here](http://easycomingsoon.com/contac
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 2.0 =
125
  1. New template added in coming soon pro version and update pro list features.
126
 
3
  Donate link: http://easycomingsoon.com/
4
  Tags: coming soon wordpress plugin,coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, under construction, admin, newsletter, offline, site offline, wordpress coming soon, wordpress under construction, wordpress maintenance mode,email,gmail,subscriber,notify,message,user,preview,wordpress under construction page,wordpress landing page, ultimate coming soon page, ultimate landing page, wordpress maintenance mode plugin
5
  Requires at least: 3.3+
6
+ Tested up to: 4.9
7
+ Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.0.1 =
125
+ 1. Added code snippet to redirect user to plugin settings page on plugin activation.
126
+
127
  = 2.0 =
128
  1. New template added in coming soon pro version and update pro list features.
129