[resolved] Settings deleted during deactivation? (3 posts)

  1. tzdk
    Posted 3 years ago #

    A small thing but would it not be better to keep settings when MinQueue is deactivated?

    Or if not then perhaps add a little notice on settings page?

    If it should not delete settings I guess I have local issue. Not a big deal, works 100%.


  2. Matthew Haines-Young
    Human Made
    Plugin Author

    Posted 3 years ago #

    Thanks for your feedback.

    This is intended behaviour, as I personally prefer this behaviour. I'll have a think about it and ask around as maybe other users will also not expect this.

    Thanks, and sorry for any inconvenience!

  3. tzdk
    Posted 2 years ago #

    Fixed thanks to WordPress Answer site :) See link in code for details.

    // http://wordpress.stackexchange.com/a/92250
    add_filter( 'plugin_action_links', 'disable_plugin_deactivation', 10, 4 );
    function disable_plugin_deactivation( $actions, $plugin_file, $plugin_data, $context ) {
    	if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array(
    		unset( $actions['deactivate'] );
    	return $actions;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MinQueue
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.