The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
75 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( ...
0
votes
1answer
66 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: ...
0
votes
1answer
164 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 ...
0
votes
1answer
761 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 ...
0
votes
1answer
75 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
148 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
0answers
10 views

Unable to create custom table , register_activation_hook from class

Cannot create the table , what am i missing class em_db { public function em_events_custom_table() { global $wpdb; $table_name = $wpdb->prefix . "em_events_db"; ...
0
votes
2answers
41 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 ...
0
votes
1answer
27 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'); ...
0
votes
0answers
35 views

Multisite - Blank Page on First Subsite Page Load

I have a WordPress multisite installation where each subsite is private and can only be accessed by logged in users who are members of the subsite in question. After a new subsite user activates his ...
0
votes
0answers
20 views

Deleting files and directories with theme activation hook

Has anyone got some insight or good resources for a function to delete the standard plugins and themes upon activation of a custom theme? There does not seem to be a whole lot of info on the topic and ...
0
votes
0answers
24 views

WordPress Not Sending Out New User Passwords

When I'm creating a new user on a WordPress installation, the new user email is not being sent to the new user. Any idea what's going on? More info: Retrieve password emails are being sent.
0
votes
0answers
16 views

How activate custom plugin in WordPress on virtual box “host only adapter” and no internet connection?

I'm running WordPress in Virtual Box CentOS 6.5 on a laptop without an internet connection. I am able to get the CMS in a web browser by running the virtual box using a "host only adapter". However, ...
0
votes
0answers
14 views

Activate Multiple uses

I have a Football Pool where users can register themselves. I need to activate all users manualy. Somehow I cant Active all users at once. When I select them al and press active only first user is ...
0
votes
0answers
65 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
34 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
8 views

Activation error on first try, not subsequent tries

I'm getting an activation error, the first time a plugin is activated, even though it activates. Subsequent activations (after db tables etc are already sorted) don't throw the error which is... ...
0
votes
0answers
110 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
71 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
68 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 ...
0
votes
0answers
125 views

Two emails being sent on user registration

I'm having a problem where visitors are receiving two emails when they register for an new account. One email has a welcome message that I have set, and one is empty. I want to disable the sending of ...
0
votes
0answers
94 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 ...
0
votes
1answer
138 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 ...
0
votes
1answer
221 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 ...
0
votes
0answers
113 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 ...
0
votes
1answer
100 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 ...
0
votes
1answer
39 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
76 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 ...
0
votes
1answer
508 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?
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
116 views

Deactivate plugin on registration

I'd like to check if the server is running PHP5.2. To do this, I use a activation-hook which will be registered with "register_activation_hook". Instead of just returning a warning, i'd like to ...
-1
votes
1answer
29 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 ...
-1
votes
1answer
24 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 ...
-1
votes
1answer
16 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
votes
1answer
256 views

how to mage the submenu open on wordpress active page

i have the same problem in my website click here how i can change the code for when you click on corporate profile you go to the page and the sub menu stay open please some help