WordPress.org

Ready to get started?Download WordPress

Forums

Add Logo to Admin
make logo sticky after deactivate/reactivate? (3 posts)

  1. SiteSubscribe
    Member
    Posted 2 years ago #

    The plugin works great. Thanks.

    Only drawback is that after disabling the plugin, (which I have to do often to debug plugin conflicts), it loses the checked/selected logo.

    I use this plugin on a lot of sites, and do a lot of debugging, so it is very tedious to always have to go back in and select he already uploaded logo.

    Is there any way you can make the logo selection sticky after deactivate/reactivate?

    Thanks,
    Jeff

    http://wordpress.org/extend/plugins/add-logo-to-admin/

  2. c.bavota
    Member
    Plugin Author

    Posted 2 years ago #

    WordPress suggests that when a plugin is deactivated, you remove all the options from the database. Add Logo to Admin is built that way but you can overwrite this by creating a modified version. Just remember that each time you update it you would have to modify it again.

    Just remove this line:

    register_deactivation_hook(__FILE__,'unset_add_logo_options');

  3. SiteSubscribe
    Member
    Posted 2 years ago #

    I think WP recommends clean up of the database on Plugin Deletion, not Deactivation.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic