WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Settings deleted during deactivation?

[Resolved] Settings deleted during deactivation?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Haines-Young

    @mattheu

    Human Made

    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!

    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;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Settings deleted during deactivation?’ is closed to new replies.