WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tzdk
    Member
    Posted 1 year 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%.

    http://wordpress.org/extend/plugins/minqueue/

  2. Matthew Haines-Young
    Human Made
    Plugin Author

    Posted 11 months 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
    Member
    Posted 6 months 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(
    		'minqueue/plugin.php'
    	)))
    		unset( $actions['deactivate'] );
    	return $actions;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.