Questions tagged [deactivation]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
143 views

Must activation/deactivation functions in a class be static?

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. ...
0
votes
0answers
15 views

Is there an option to execute javascript file only on plugin deactivation

I'm creating a custom plugin for WordPress and I'm trying to execute javascript file only on plugin deactivation. I'm using register_deactivation_hook() and wp_enqueue_script() to execute file only ...
0
votes
0answers
30 views

Unset plugins on front-end belonging to specific category

I have a function which unset plugins on the front-end. The only extra criteria, in_category ( 'my-cat-name' ), I am not able to achieve. Where and how to add the category so the plugins are only ...
0
votes
1answer
93 views

is_active_sidebar() problem

I'm trying to develop a wordpress theme with a hero slider, I use some 3rd party slider widget inserted to the hero widget area I've defined as sidebar-hero in my functions.php file. I'm using this ...
0
votes
0answers
56 views

Different plugins activated online and offline

I develop / add to / etc. my site offline, then transfer the updated database (in toto) to the live site. Some of the plugins I need / use offline, I don't need online, and vice versa. Is there a way ...
0
votes
3answers
83 views

Is it possible to run javascript on plugin deactivated?

Is it possible to run javascript on plugin deactivated and if yes then, how should I achieve that. I have developing one plugin in which two new tables are created in wp database and on deactivation ...