1
vote
2answers
17 views

Activated plugin is stored as an object, rather than as a path

This seems like a very unusual behavior: Usually, when activating a plugin, a path to the plugin's main file (or bootstrap) is stored in the database under options.active_plugins. However, something ...
0
votes
0answers
42 views

Why this function not working for install database on plugin activation

I followed codex instructions from wordpress site but for some reason it's not working for me and i can't understand why is there any debug settings or options to activate to explain me where i go ...
0
votes
0answers
21 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
0answers
69 views

Problems with installing and deleting plugins

When I want to install a plugin from the web interface, I receive the error The plugin does not have a valid header. or Destination folder already exists. after it has been downloaded and ...
0
votes
0answers
58 views

TGM-Plugin-Activation does not work

When I try to install a lot of plugins using TGM-Plugin-Activation I got an ocurrent error: An error occurred while installing : Download failed. A valid URL was not provided.. and in the end ...
0
votes
0answers
40 views

Activate Plugin which is in subfolder?

I try to activate the plugin inside the plugin folder is possible ? I am adding the absolute path of the plugin as something like I have a folder as main file and subfolder contain another plugin ...
1
vote
1answer
30 views

Own plugin corrups plugin-activation

I am currently working on a simple plugin. Activating my plugin works fine. However, I can't activate any other plugin as long as mine is active. Also, the edit links won't work. Any help with this ...
0
votes
1answer
131 views

activate a WordPress plugin via a SQL query

I am looking for a way to activate a WordPress plugin via a SQL query. I am aware you can login and hit "activate" on the particular plugin, but I would like to automate the activation as part of a ...
1
vote
2answers
694 views

Automatically install wordpress plugin at theme activation

I'm looking into using http://tgmpluginactivation.com/ to activate required plugins for my custom theme during the theme activation step. From what I can tell, this class only Activates plugins ...
1
vote
1answer
154 views

Remote plugin activation hook

I am remote activating plugins using update_option('active_plugins,'some_plugins'); It works fine except one thing: if some plugins have to create some tables using ...
0
votes
1answer
37 views

Plugin De/Activation Not Firing On MultiSite install

I have a very rudimentary plugin in development, but at the point of needing to enable the register_activation_hook() and register_deactivation_hook() I have stalled. I am getting zero output from ...
0
votes
2answers
414 views

How to check if a theme is active?

I'd like to be able to check if the twentytwelve theme is active. I know if I was checking for an active plugin I'd do something like: $active_plugins = apply_filters( 'active_plugins', get_option( ...
1
vote
1answer
99 views

register_activation_hook with include file [closed]

I'm yanking my hair out with the following code, please help. I have 3 files. File1.php: Class File1 { public function file1_register() { //register some short codes; } public ...
0
votes
1answer
525 views

register_activation_hook in oop approach

I tried to develop a plugin in OOP approach. I tried to load all the function needed inside the constructor class e.g action hooks. The problem is this hook "register_activation_hook". It wont load ...
2
votes
2answers
484 views

The plugin generated x characters of unexpected output, $wpdb not defined

I've written a simple Wordpress plugin to create a new database table. The new table ought to be created when the plugin is activated. When I try to activate the plugin, I get the following error: ...
0
votes
1answer
84 views

why i cannot see some plugins while they are enabled on network admin page?

i am using WPMU 3.3.1, i have some plugins enabled but why i cannot see them in some wordpress panel, it is confusing, but these plugins may take effect to these blogs, it is really strange to take ...
1
vote
0answers
88 views

Plugin Activation Problem [closed]

I am trying to activate a plugin on my install of WordPress 3.4.2. It works okay. It says Plugin activated, but below the plugin is not activated. It does the same for all plugins, including Hello ...
3
votes
2answers
813 views

Show a confirm message before plug-in activation

I want to display a message when the user try to activate my plugin. This message will ask if him really wants to activate the plugin or, if him change his mind, cancel the activation. How can I ...
0
votes
1answer
265 views

Default Plugin Settings Not Writing to Database

I have my plugin setup as such: Main plugin file mouldings.php <?php /* Plugin Name: Moulding Profiles Plugin URI: Description: Creates a 'Moulding Profiles' and 'Idea Gallery' custom post ...
0
votes
1answer
74 views

My plugin does not install correctly if a previous version is still installed

My plugin only installs correctly if the user first deactivates and then deletes a previously installed version. If they do not delete the previous version, the installation either does not complete ...
0
votes
1answer
137 views

Is there existing plugins to “Click-to-Launch” embedded Flash / SWF content?

I'm aware that there is existing FlashBlock plugins that users can install on their browsers, but I would like a Wordpress approach to be able to: Replace SWF content by a thumbnail / screenshot of ...
0
votes
1answer
502 views

Auto add content such as pages upon plugin activation?

I'm creating my first plugin and it requires some pages with content to functionally work properly. I was wondering if it is possible to show a message like "Click here to automatically add the ...
0
votes
2answers
522 views

rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked

thanks to Roman for pointing me in the right direction my plugin is almost ready. The only problem i am now facing is that i cannot get the rewrite_rules applying on activation they only work after i ...
39
votes
2answers
22k views

Uninstall, Activate, Deactivate a plugin: typical features & how-to

I'm making a wordpress plugin. What are typical things I should include in the uninstall feature? For example, should I delete any tables I created in the install function? Do I clean up my option ...
1
vote
1answer
154 views

Force plugin to fail activation

I'm writing a plugin that will be using custom fields added by a theme. Because of this, it would be ideal if my plugin not be able to activate should these fields not exist. How do I go about ...
2
votes
1answer
293 views

Pluggable function and activation check?

Plugin is defining pluggable wp_mail() function. My idea was to check if function is defined already and throw warning if other plugin beat me to it. However this warning causes issues on activation. ...
8
votes
3answers
9k views

How To Activate Plugins via Code?

If possible, how can installed plugins (meaning the files have been placed in wp-content/plugins directory) be activated from other plugins?