Today, We want to share with you Redirect to custom page after plugin activation.In this post we will show you Refresh or redirect page after activate my plugin, hear for Redirect to settings page after install we will give you demo and example for implement.In this post, we will learn about WordPress User Redirection to Custom Page After Registration with an example.
Redirect to custom page after plugin activation
There are the Following The simple About wordpressRedirect to custom page after plugin activation Full Information With Example and source code.
As I will cover this Post with live Working example to develop wordpress redirect after registration plugin, so the some major files and Directory structures for this example is following below.
[php]
register_activation_hook(__FILE__, ‘infinityknow_activate’);
add_action(‘admin_init’, ‘infinityknow_redirect’);
function infinityknow_activate() {
add_option(‘infinityknow_do_activation_redirect’, true);
}
function infinityknow_redirect() {
if (get_option(‘infinityknow_do_activation_redirect’, false)) {
delete_option(‘infinityknow_do_activation_redirect’);
if(!isset($_GET[‘activate-multi’]))
{
wp_redirect(“PAGE_LINK”);
//or
//exit( wp_redirect( admin_url( ‘admin.php?page=plugin_page_slug’ ) ) );
}
}
}
[/php]
Web Programming Tutorials Example with Demo
Read :
Summary
You can also read about AngularJS, ASP.NET, VueJs, PHP.
I hope you get an idea about Redirect to custom page after plugin.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.