Do you clean up your self-written plugins’ at deactivation?
After developing some plugins for myself, some of them is ready to be published. For all, I’ve written deactivation functions, which deletes the … Read more
After developing some plugins for myself, some of them is ready to be published. For all, I’ve written deactivation functions, which deletes the … Read more
When my plugin is deactivated, I want to get a confirmation from the user whether all plugin options/tables need to be deleted or … Read more
I want to show a notice to the user and deactivate my plugin, using OOP code style, if the user has a PHP … Read more
I’m using the following code to deactivate my WordPress Plugin if the requirements are not met public function activate() { if (!$this->check_requirements()) { … Read more
I’m customizing a WooCommerce theme and am going to be moving the title. There is an action in content-single-product.php called: do_action( ‘woocommerce_single_product_summary’ ); … Read more
I’m developing a custom BuddyPress/WordPress Plugin. Here’s how a user would normally register. A user registers as usual on registration page His/Her account … Read more
The description for register_uninstall_hook‘s $callback parameter states: Must be a static method or function.1 There is no such comment for register_activation_hook or register_deactivation_hook. … Read more
I’m making a WordPress plugin. What are typical things I should include in the uninstall feature? For example, should I delete any tables … Read more