Questions tagged [activation]
The activation tag has no usage guidance.
47
questions with no upvoted or accepted answers
3
votes
1
answer
316
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 ...
2
votes
1
answer
28
views
Cannot run the code after I activate the plugin
I wrote a plugin to write code into the wp-config.php – it should download a code file and add it to my wp-content. But I only can run the function manually. I want the plugin to run the function when ...
1
vote
0
answers
49
views
How to check if tables in Wordpress still exists after activations
I have problems that my checkIfTablesExists() function is never called, even though I add some fake table name to the list of table names.
The reason I want to make this function is to check if the ...
1
vote
0
answers
30
views
How to block plugin activations with no known user or coming from unknown IP address range?
I have received a Sucuri alert for an unauthorized plugin activation:
Event: Plugin Activated Website: http://www.XXXXXX.XXX IP Address: XXX.XXX.XXX.XXX Reverse IP: XXXXXX.XXXXXX.XXXX Date/Time: 7 ...
1
vote
0
answers
44
views
On multisite, plugins are disabled prematurely when viewing the /wp-activate.php page file
On multisite, setting the WP_INSTALLING constant on wp-activate.php file disables all plugins prematurely. Why didn't the core create a way to bypass this. Though this may be required for activating ...
1
vote
1
answer
71
views
Run plugins only on certain pages
I want to use my personal plugin only in some pages.
If I remove the add_action function ('the_content', 'my_plugin_content'); the plugin does not show me the content of the other pages that are not ...
1
vote
0
answers
32
views
Are functions in main plugin file called before function bound to register_activation_hook runs?
In my plugin, I am doing a minimum-supported PHP version compatibility check via a function bound to register_activation_hook and halting activation for those on PHP version less than the minimum ...
1
vote
1
answer
107
views
Force file download on plugin activation
I am writing a plugin and want to force users to download a file immediately when they activate the plugin. Here is the code that I've written so far but doesn't work.
No fatal errors but gives ...
1
vote
0
answers
88
views
What is the correct way of updating wordpress options
I've added some codes to my theme's function so when I activated the theme, it will update the category base, permalinks, and post_per_page, and they worked perfectly fine.
However, since I'm just ...
1
vote
1
answer
2k
views
WordPress user account activation
How do I implement user account activation in WordPress? (This is not for multisite.)
Once the user registers through the site or admin panel, the user should get an email with an activation link.
...
1
vote
0
answers
68
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 ...
1
vote
0
answers
190
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 ...
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 ...
0
votes
0
answers
16
views
Backend working but not front
I tried to move a site I was working on from my laptop to my desktop computer. Once I got some issues with the database sorted I managed to log into the admin. After updating everything that needed it ...
0
votes
0
answers
40
views
My activator class isn't running the code inside
I am using the WP Plugin Boilerplate and I am requiring files and admin notices within the activator class but my Kirki panel is not showing up in the customizer and the admin notice isn't appearing. ...
0
votes
1
answer
33
views
Is there a canonical way for a plugin to install a mu-plugin or drop-in?
I have a couple of plugins that need to install drop-in modules or mu-plugin modules when they're activated, and remove them when they're deactivated.
This requires copying -- or maybe symlinking -- a ...
0
votes
1
answer
106
views
Wrong activation/confirmation link in email
I've created a custom login page login.php inside the root. (e.g.: http://www.example.com/login.php)
/*
LOGIN PAGE.
*/
// Login URL.
function custom_login_url($login_url, $redirect, $force_reauth ...
0
votes
0
answers
16
views
TinyMCE is inactive after installation
Installed TinyMCE, but still getting this toolbar :
https://ps.w.org/tinymce-advanced/assets/screenshot-1.jpg?rev=2390186
instead of this :
https://ps.w.org/tinymce-advanced/assets/screenshot-4.jpg?...
0
votes
1
answer
135
views
How to run flush_rewrite_rules on activation after i register my custom post type using Wordpress Boilerplate Plugin
I have created a plugin that register a new CPT but it doesnt work because i have to flush_rewrite_rules()
(i can do this by going into the permalink setting page and save, but its not the right way)
...
0
votes
1
answer
411
views
How to let new users login without email activation
The idea is to get rid of mandatory new account activation through email
As is: register new user -> exit without following to email verification link -> try to log in -> Site says something ...
0
votes
2
answers
93
views
Activation email to change admin address not being sent to Gsuite email account
I changed my admin email in the WordPress dashboard I'm using to create a website and it's just not sending out the email to confirm changes. The domain is hosted through BlueHost and the domain email ...
0
votes
0
answers
15
views
How to check for already existing plugin versions on activation? and prevent errors
If a user has a version of my plugin installed and activated, let's say version 1.1
And I send the user version 1.2 and he tries to upload and activate the new version, what will happen is that they ...
0
votes
0
answers
466
views
how to enable/activate a plugin per Cpanel
The webdesign company deleted my access to plugins in my wordpress panel
so, I downloaded the plugin.zip and extracted it in wp-content/plugins
In phpmyadmin/wp-options/active-plugin
there was not ...
0
votes
0
answers
378
views
My Wordpress activation hook isn't working
I just can't see why my activation hook isn't working.
/* ****Debug function ****/
function console_log( $data ){
echo '<script>';
echo 'console.log('. json_encode( $data ) .')';
echo '&...
0
votes
1
answer
393
views
WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
On plugin activation hook I want to create a table but the following code is giving Uncaught Error. I just wonder why it is not giving this error since I am properly including update.php.
global $...
0
votes
1
answer
338
views
Activate User account for Sub Site broken
When I add a new user to a WP Multisite sub-site, an email is sent out asking the user to click a link to activate. The link looks like this:
https://website.com/subsite/wp-activate.php?key=XXXXXXXXX
...
0
votes
0
answers
74
views
Custom Plugin activation error in Multisite
I have created one custom plugin but when i try to Network Active in multisite its generate error like below
But when i install plugin from individual admin its successfully activated.
Any help is ...
0
votes
1
answer
447
views
Redirect after plugin activation
I am not a techy guy so please explain in simplest ways how can i solve this problem . When i install a plugin ( it does not matter which plugin) and then press to activate it , it redirects me to ...
0
votes
1
answer
91
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
1
answer
316
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
0
answers
71
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
1
answer
84
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, $...
0
votes
0
answers
11k
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 ...
0
votes
1
answer
436
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
1
answer
719
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 ...
0
votes
1
answer
137
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','...
0
votes
0
answers
61
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
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
36
views
Custom Table doesn't create on plugin activation
I'm a newbie in plugin development. I tried following this documentation: https://codex.wordpress.org/Function_Reference/register_activation_hook
I've created a function on the main plugin file (wp-...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
192
views
Is it possible to send user new password after they clicking on forgot password in word press
In word press is it possible to send users to new password after they are clicking on forgot password page ?
Actually I dont want to send any url to users email which can take them to any page.
Also ...
-1
votes
1
answer
1k
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