The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
4answers
4k views

Activate a plugin through PHPMyAdmin or FTP?

I've just disabled a plugin on my site and it's now giving me the dreaded white screen of death. I know the site will be fine if I reactivate the plugin. Is there a way to manually activate a plugin ...
12
votes
3answers
20k 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?
-1
votes
0answers
22 views

possible to set WP_POST_REVISIONS in wp_config.php, on theme Activation? or Plugin API/Filter WP_REVISIONS_TO_KEEP my option?

I'm trying to reduce DB clutter, and looking to limit the number of Revisions saved for all posts to 3. setting WP_POST_REVISIONS to 3, in wp_config.php would be my preferred option, but I haven't ...
0
votes
1answer
102 views

Activate plugins by a theme's functions.php?

Is it possible to activate plugins per theme? I have a multisite, and I know it is possible to activate plugins per site. But I need plugins to be enabled for specific themes. Someone asked a ...
3
votes
1answer
44 views

Login email after registration never sent or received

On my site, after a user registers they receive an email with an activation link. When clicking the activation link, sometimes the page doesn't load, sometimes it does (usually if I click the link ...
2
votes
0answers
32 views

__NAMESPACE__ with register_activation_hook

Im teaching myself namespaces and OOP in wordpress at the moment so bare with me. In the base of my plugin I'm loading activation and deactivation hooks. Currently the deactivation hook works but ...
1
vote
2answers
788 views

How do you disable account activation in WPMU and then log the user in right away?

Is there a way to disable account activation for WPMU then log the user in and redirect them to another page? I am running on WPMU with BuddyPress.
6
votes
4answers
800 views

Prevent network activation of plugin

I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to ...
0
votes
4answers
726 views

Is it possible to stop a theme activation when a certain plugin is not activated

So I am planning a theme that will depend on a plugin (for instance Timber or Themosis). So of course a theme will break if it can't use it's depending plugin's. So I would like a way to stop the ...
0
votes
0answers
7 views

Customize WordPress activation page on a single site

I need to customize the look & feel of the activation page on a single-site Wordpress installation. The only working guide I found after a long search is this Customize user account activation ...
5
votes
1answer
299 views

How to run an activation function when plugin is network activated on multisite?

I'm trying to make my plugin multisite compatible. I'm using the register_activation_hook() function to register my my_activate() function to run when the plugin is activated. This works well on a ...
0
votes
1answer
31 views

A question about register_activation hook

Looking at wp codex it says: The register_activation_hook function registers a plugin function to be run when the plugin is activated. I am finding this to be not entirely correct, for example i can ...
0
votes
1answer
527 views

Activate a plugin via a SQL query

I am looking for a way to activate a 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 release ...
1
vote
1answer
31 views

Plugin Deactivate Self on Activation Errors

Hi I'm wondering if someone can point me in the right direction here. I'm having trouble figuring out how deactivate_plugins() works. I've been using variations of the below for awhile now and it's ...
0
votes
1answer
45 views

Insert terms for custom taxonomy on plugin activation, or each page load (init hook)

Consider a plugin which adds a custom Taxonomy and then fills the taxonomy with a large term hierarchy (tens of hierarchical terms, may become hundreds in specific installations). I understand that ...
0
votes
1answer
35 views

Wordpress user account activation

How to implement user account activation in WordPress, it's not a multi-site. Once user registered through site or admin panel, user should get an email with activation link. Once the link opened ...
0
votes
1answer
19 views

Activation of new Registered site fails on multisite

I recently installed multisite to my main site. I put a registration link at the top of my page. I tried registering a new site and user. The steps were straight forward with username, email, and ...
0
votes
1answer
23 views

Error Copying Directory On Plugin Activation

I am trying to copy directory using WP_Filesystem API with the method copy_dir() on plugin activation, but it is give me the following error message: Plugin could not be activated because it ...
0
votes
0answers
33 views

Users set passwords but cannot login

I'm working on a WP-based site that requires creating accounts for users and sending them their password reset links by email so they can activate their accounts. After manually sending out all the ...
0
votes
1answer
32 views

Wordpress hook source

I am trying to understand how plugins are activated. wp-admin\includes\plugin.php, line 602, there is a call to run a hook called activated_plugin do_action( 'activated_plugin', $plugin, $...
2
votes
5answers
9k views

Does wordpress create activity, update logs?

Does wordpress create any dated logs of activity? ie core updates, plugin download dates etc?
5
votes
0answers
96 views

How to Modify/Change a Buddypress/Wordpress Account Activation Process

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 is deactivated till he/she clicks on ...
0
votes
1answer
2k views

Buddypress send admin notification email when new subscriber registers

I am running a Buddypress site, but I am not getting emails when a new subscriber registers. I have used a code in my functions.php that removes the activation email the user would receive (I want ...
0
votes
1answer
72 views

I can install my plugin in localhost but not in my server

Well, I finished my first plugin in WordPress but I have a little problem. My plugin have the next code add_action('my-plugin/my-plugin.php','rating_install'); add_action('admin_menu','...
1
vote
3answers
190 views

How to activate plugins for my WordPress sites from a remote server

I have been thinking of managing a set of wordpress sites from a remote server.I would like to get information on plugins that has been installed on my wordpress sites.I would also like to install ...
0
votes
1answer
28 views

API calls on plugin activation or init?

When I activate my plugin, I need to call an API, to get some items, lets say fruits, flowers and animals. I need to create taxonomy terms out of these items. Then I need to loop over these items and ...
0
votes
0answers
811 views

Resend user activation mail

We've set up a small Wordpress environment and added about 150 users by importing an excel document through the User Meta plugin. The Wordpress environment is build for a wedding and lets users fill ...
3
votes
5answers
6k views

Customizing wp-activate.php

Does anyone know how I can customise wp-activate.php? It wraps the content in <div id="content" class="widecolumn">, however in my theme the main wrapper is <div id="main"> Presumably, I ...
1
vote
0answers
45 views

Display message on homepage when new user account is activated

When a new user registers on Wordpress an activation link is sent out to their email address. When the user clicks on this link they are directed to my homepage and their account is activated. At ...
2
votes
1answer
98 views

Can't add user to blog on registration (Multisite)

I'm trying to add a users to a specific blog with a role chosen by the user at registration. I'm able to add the desired role to meta with this: add_filter( 'add_signup_meta', 'add_register_meta' );...
5
votes
3answers
2k views

How to output message during plugin activation

I am developing a plugin, but during the activation phrase I am constantly facing bugs. However there is no easy way to display error messages, since echoing stuff would result in 'unexpacted output' ...
5
votes
2answers
2k views

Inserting Taxonomy Terms During a Plugin Activation?

I've been trying various ways of doing this. Basically, I've been trying to make it so that a plugin of mine populates the terms of a taxonomy only once during the plugin's activation. The term ...
0
votes
1answer
764 views

Run function on plugin activation before plugin is loaded

I have two versions of the same plugin - one is a free version on WordPress.org and the other is a paid upgrade. Both versions use the same function names and so can't be activated at the same time. ...
13
votes
3answers
2k views

How to redirect to settings page once the plugin is activated?

I created the Plugin of my own. Everything seems OK but one thing I want to do in that plugin is redirect to the corresponding plugin settings page when the plugin is activate. For example: http://...
0
votes
1answer
89 views

Fetch User Meta Data

Table - wp_usermeta user_id meta_key meta_value 10 login_status 0 10 active_code 3f7431e226893f16cbe44424850d00ad I need to select user_id where login_status = 0 and ...
0
votes
2answers
197 views

Activation Account Email

I use a betnami hosted wordpress multisite, when a user sign up in the site he should receive an email with activation link, but it does not work! so how to make it work? and if it work how to ...
0
votes
1answer
168 views

Refresh or redirect page after activate my plugin

I'm quite newbie in PHP and plugin development, and I think I'm missing something obvious but I dont know how to do it. When I activate my plugin (it adds some menu items), everything it's ok except ...
-1
votes
1answer
30 views

Theme with Isoptope after activation in new install not working well [closed]

Hi I'm developing a theme with Isotope (masonry mode) and everything works well in the master/development location of WP. But if I take this theme and I activate it in a new installation of WP (same ...
0
votes
2answers
43 views

Apparent errer when installing plugin

I have been working on my first plugin (call is myplugin). The path to the plugin code is wp-content/plugins/myplugin/myplugin.php. The myplugin.php file is essentially as follows: <?php defined(...
0
votes
2answers
225 views

Multiple instance of data in plugin custom database table on plugin activation

I'm creating a plugin that adds some data to a custom table created by my plugin on plugin activations. I also created a settings page with a form that users can insert their own data to the database....
3
votes
1answer
116 views

Ask user permission when activating a plugin

Is there a specific Wordpress API way to ask the user's permission for something when activating a plugin? Due to the Wordpress plugin directory policy I have to ask the users consent for the ...
0
votes
1answer
243 views

Plugin can't be activated [closed]

I'm developing a WordPress plugin, but the last changes caused the plugin to stop working. It tells me that I can't activate the plugin because it caused a fatal error. On localhost all is working ...
2
votes
2answers
883 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: ...
2
votes
1answer
3k views

How to include plugin without activation?

I need to include plugin in my WordPress theme without plugin activation. I have these lines: include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php'; include( ...
1
vote
1answer
231 views

Unexpected Output: register_activation_hook with namespace

I encounter a weird error while using the register_activation_hook and namespace. The plugin generated 236 characters of unexpected output during activation. If you notice “headers already sent” ...
4
votes
3answers
703 views

Viewing output when the “The plugin generated x characters of unexpected output during activation” error is triggered

I'm working on a plugin and having some difficulties getting a new table created. I get the "The plugin generated x characters of unexpected output during activation" error. Is there a way of viewing ...
0
votes
1answer
330 views

register_activation_hook for multiple functions

I have created a plugin where I want to call two different functions on activation. Is there a best way to do this? Should I use register_activation_hook twice? As in: register_activation_hook( ...
-1
votes
1answer
26 views

Clean way to initialize plugin in newly-added site when plugin has been network activated?

I've been working on migrating one of my plugins to support multisite installs and am attempting to figure out the cleanest way to handle the following series of events: Plugin is Network Activated ...
1
vote
2answers
29 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 ...
1
vote
2answers
3k 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 ...