Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter robanna

    (@robanna)

    I think this is all that is needed:

    /* Runs when plugin is activated */
    register_activation_hook(__FILE__,’kc_twitter_facebook_install’);

    /* Runs on plugin deactivation*/
    register_deactivation_hook( __FILE__, ‘kc_twitter_facebook_remove’ );

    /* Runs on plugin uninstall*/
    register_uninstall_hook( __FILE__, ‘kc_twitter_facebook_uninstall’ );

    function kc_twitter_facebook_install() {
    /* Do Nothing */
    }

    function kc_twitter_facebook_remove() {
    /* Do Nothing */
    }

    function kc_twitter_facebook_uninstall() {
    /* Deletes the database field */
    delete_option(‘twitter_facebook_share’);
    }

    Plugin Author BeingMaverick

    (@beingmaverick)

    Point noted. Will add to the next release. Thanks a lot for contributing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Add Twitter, Facebook Like, Google plus one Social share] Plugin deactivation deletes optio’ is closed to new replies.