Questions tagged [activation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
248 views

Activate / Deactivate plugin

I'm working on my first plugin and am trying to use register_activation_hook() and register_deactivation_hook() ... I know I'm not doing this right: /*=================================================...
Designer 17's user avatar
0 votes
1 answer
109 views

Why do I need to register my custom post type a second time when flushing rewrite rules?

If I register my custom post type when the init action fires (which is before plugin activation) why do I need to register my custom post type a second time when flushing rewrite rules (on plugin ...
tacudtap's user avatar
0 votes
0 answers
255 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 I ...
Harold L. Brown's user avatar
0 votes
0 answers
2k 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 ...
Vignesh Pichamani's user avatar
0 votes
1 answer
1k views

How can I create blog specific database table in multisite?

I am creating a plugin, that supposed to work on WP multisite yesterday. I've installed WP multisite on my server. While testing I found out that register_activation_hook created 1 table on the main ...
Neta Meta's user avatar
  • 251
0 votes
0 answers
452 views

Custom WP deactivate an email activation link sent to user's email.

As the title stated, instead of using the WP default recovery password page, I created a custom reset password recovery page template. Everything is working except I'm not sure how deactivate the ...
rolu's user avatar
  • 35
2 votes
1 answer
10k views

Customize user account activation message

During the process of a user creating a new account, once they click on the link in the activation email, they receive the message on the login page: Your account is now active! Username: ** ...
Chris's user avatar
  • 433
0 votes
1 answer
2k views

wpmu_signup_user_notification filter not working

I'm trying to customise the activation email in WordPress. I'm using WordPress 3.8 Multisite (subdomain). I added the following code (from http://daan.kortenba.ch/filter-...
Chris's user avatar
  • 433
1 vote
1 answer
56 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 ...
eevaa's user avatar
  • 145
1 vote
1 answer
941 views

Register theme customizer settings when theme activates [duplicate]

I've been following this great tutorial (http://wp.tutsplus.com/tutorials/theme-development/digging-into-the-theme-customizer-overview/) and now I have set the Theme customizer. As far as I ...
Alvaro's user avatar
  • 2,533
0 votes
1 answer
1k 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 ...
crmpicco's user avatar
  • 801
0 votes
0 answers
155 views

Wordpress plugin tables become corrupt

I have written a plugin that creates and uses 3 database tables. On rare occasion, all 3 database tables become corrupt but no other tables in the database exhibit similar conditions. It is pretty ...
fixedpoint's user avatar
17 votes
3 answers
12k 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://...
Vignesh Pichamani's user avatar
0 votes
1 answer
303 views

Menu item not created on theme activation

On theme activation the following code doesn't create my menu with the 'New Page' item, the menu is created and the location is assigned to 'submenu' but no menu item of my newly created page? What ...
erichmond's user avatar
  • 1,273
4 votes
2 answers
15k 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 ...
teamcrisis's user avatar
1 vote
1 answer
153 views

How do i place same widgets multiple time by default on theme activation?

I am creating a portfolio theme and want to place some widgets on sidebar by default on theme activation. I did it but the problem is that, I want to place Text widget two times at the same sidebar ...
Shaikh Aezaz's user avatar
4 votes
1 answer
854 views

Using wp_cron with custom time interval and the register activation hook

Scenario 1: fails Adding a cron task wp_schedule_event with a custom interval on plugin activation using register_activation_hook outside the class definition fails to work because the custom ...
Adam's user avatar
  • 16.3k
1 vote
1 answer
396 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 register_activation_hook(__FILE__,'...
bigwolk's user avatar
  • 179
3 votes
1 answer
1k views

Call activation hook multiple times

I have a plugin that does some initialization stuff using register_activation_hook called from its __construct(). I've since extended my plugin to add functionality to it. For the sake of ...
ahnkee's user avatar
  • 75
0 votes
1 answer
119 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 ...
Erik's user avatar
  • 1
7 votes
4 answers
13k views

Import Wordpress XML File from Within Functions.php

I am developing a theme which has a different method of adding in content and so, the default install of Wordpress won't show any content because of this. I was wondering if it is possible to ...
Dwayne Charrington's user avatar
16 votes
2 answers
15k 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( '...
Jeremiah Prummer's user avatar
1 vote
1 answer
797 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 ...
user31108's user avatar
1 vote
2 answers
1k 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.
Kirill Fuchs's user avatar
0 votes
4 answers
8k 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 ...
Yves Gonzaga's user avatar
2 votes
3 answers
2k 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: ...
cg433n's user avatar
  • 123
2 votes
2 answers
2k views

Override pluggable functions in a plugin?

WordPress has a file called pluggable.php which contains a list of functions you can override in your plugin. The problem I am facing (I am overriding wp_authenticate) is for each blog in my network ...
Itay Moav -Malimovka's user avatar
9 votes
4 answers
3k 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 ...
k3davis's user avatar
  • 391
0 votes
2 answers
69 views

I have no images in an activated wp theme

With this line everything works fine - (as a Non-Wordpress index.php): <link href="style.css" rel="stylesheet" type="text/css"/> When I activate the file as a wp theme and replace above ...
Alegro's user avatar
  • 127
-1 votes
1 answer
414 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 ...
hugemeow's user avatar
  • 245
3 votes
1 answer
2k views

Redirect after User Activation [closed]

I am using BuddyPress 2 registration and activation for three different sites with my own registration form. To know where the user has registered, I add the user meta key registered_from at ...
Paul's user avatar
  • 31
4 votes
2 answers
3k 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 ...
Daniel's user avatar
  • 55
1 vote
1 answer
2k views

How to add custom menu item on plugin activation?

When my plugin is activated, I would like to add a new menu item. Here is my code: class My_Plugin { function __construct() { register_activation_hook(__FILE__, array($this, 'install')); } ...
Misha Moroshko's user avatar
4 votes
1 answer
12k views

How to manually activate user in dashboard only by admin

I'm looking for a function that allows admins (only) to activate new users. When a user registers he have to be approved by the admin before he gets access to log in. Does anyone know how I can do ...
Demilio's user avatar
  • 843
1 vote
2 answers
71 views

Comments deactivated

I can't write comments to new articles (no add comment link available). I use Wordpress 3.4. I checked the discussion properties and they are set to allow guests to comment articles none of the ...
juergen d's user avatar
  • 113
0 votes
2 answers
85 views

How to cancel redirection to admin side

My friend asked me to activate a site that someone else did it. The problem is that when I try to run it, and I go to mysite.com I arrive to mysite.com/wp-login.php?redirect_to=/ Where and how can I ...
Shimon S's user avatar
  • 877
1 vote
1 answer
552 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 type,...
Zach's user avatar
  • 1,923
7 votes
3 answers
44k views

Does wordpress create activity, update logs?

Does wordpress create any dated logs of activity? ie core updates, plugin download dates etc?
v3nt's user avatar
  • 1,649
1 vote
1 answer
113 views

Add update services on theme activation

I want add update services when I activate my theme, how to do this ? with an hook like enable_update_services_configuration ? Thanks in advance
zagriyen's user avatar
  • 121
1 vote
1 answer
558 views

is_plugin_active() not properly returning true

I have a plugin activated and working, and I installed and activated another plugin I wrote to communicate with it. However when I run is_plugin_active() I get false returned - does anyone have any ...
dama_do_bling's user avatar
0 votes
1 answer
82 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 ...
josh's user avatar
  • 113
6 votes
5 answers
12k 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 ...
nothingtosee's user avatar
0 votes
1 answer
176 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 ...
chamberlainpi's user avatar
1 vote
1 answer
3k 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 ...
Shoebox's user avatar
  • 324
1 vote
3 answers
717 views

Only allow plugin to be activated on root site of multisite

I'm developing the wordpress file monitor plus plugin. Its purpose is to scan for altered files and it works fine for a single installation of WP. But when you look at multi-site it's not something ...
Scott's user avatar
  • 12.1k
0 votes
2 answers
1k 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 ...
morleyc's user avatar
  • 149
0 votes
1 answer
2k views

Automatically delete default posts and pages on theme install?

Is there a way to automatically delete the default wordpress posts and pages when activating theme theme?
JonnyPlow's user avatar
  • 524
11 votes
3 answers
6k 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' ...
lulalala's user avatar
  • 557
2 votes
3 answers
4k views

Problem creating a table with dbDelta

I'm working on a plugin that was creating a table successfully. However, I decided to test it in a fresh install of Wordpress (on my local server) and now the table is not being created in my ...
redconservatory's user avatar
107 votes
2 answers
60k 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 ...
redconservatory's user avatar