• Hi,

    After activation, it redirected to admin.php?page=kingcomposer&screen=welcome

    Is there any snippet to disable redirect after activation.

    I’ve tried below codes but seems to be not works:

    function remove_pluginfunc() {
      remove_action( 'kc_do_activation_redirect' );
    }
    add_action('plugins_loaded','remove_pluginfunc');

    Thanks a lot

    • This topic was modified 8 years, 3 months ago by alvintam.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi alvintam,

    Thank you for your inform.
    Why do you need disable that function?

    I can suggest you the way to do that. But I need to understand why you need.

    Best regards,

    Anthony

    Thread Starter alvintam

    (@alvintam)

    I have 2 reason:

    First reason:
    I’m altering WordPress core data, where I need to re-test multiple times.
    When something bad happen where hard to get back, I simply re-install WordPress.

    To start faster, I prefer disable any notices while in development (like WooCommerce welcome message)

    Second reason:
    I tested on Multisite and not works. (I develop in Multisite)

    • This reply was modified 8 years, 3 months ago by alvintam.
    • This reply was modified 8 years, 3 months ago by alvintam.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Snippet to disable redirect after activation’ is closed to new replies.