Questions tagged [activation]
The activation tag has no summary.
161 questions
3 votes
1 answer
86 views
DB table creation on reactivation - dbDelta errors on CONSTRAINTS
I'm working on a plugin and have an activation hook that creates several tables using dbDelta. The tables all get created without any errors or issues. Several of the tables have foreign key ...
0 votes
1 answer
79 views
Plugin on activation / deactivation
I would like to prevent the proccessing of a plugin on its activation / deactivation, so I use the following code: $get = map_deep( wp_unslash( $_GET ), 'sanitize_text_field' ); if ( isset( $get['...
0 votes
1 answer
94 views
Issue with WordPress Plugin Activation Hook and Table Creation
Description: I am facing an issue with my WordPress plugin where the table creation process upon activation is not working as expected. Here are the details: What I Tried: Checked the SQL query: ...
0 votes
2 answers
103 views
WordPress Bimber template not sending User activation mails automatically
I have a bimber WordPress template, it has a User section in admin panel, when a new user signups, it goes to pending section, waiting for me to send an activation mail. How can I automate this ...
0 votes
1 answer
109 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
1k views
how can a plugin return an error message on activation?
I'm developing a plugin that needs a certain php extension (sqlite3) to be available, or it can't work correctly. Is there a way I can present an error message to the site owner when they try to ...
1 vote
2 answers
1k views
wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn't creating any tables on plugin activation
I searched the whole net and stackexchange for a reason and a solution, but couldn't find any. There are many questions (and answers) related to own plugins and the code how to create tables on ...
0 votes
1 answer
232 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
30 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
455 views
register_activation_hook() not working as expected
This is the main plugin file. It activates but nothing happens. The menu is not created. /* * Activate plugin * create admin menu * create more stuff */ register_activation_hook(__FILE__, '...
1 vote
0 answers
153 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 ...
0 votes
1 answer
74 views
Multiple array for post_content on plugin activation
sorry for my bad English. I want to create multiple pages when activating a plugin. This also works, but how do I get different content in the different pages? if (!current_user_can('activate_plugins')...
1 vote
0 answers
48 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 ...
0 votes
1 answer
1k views
Class cannot be found, but it's available in the file, I get: Fatal Error: Uncaught Error: Class 'Blocks\Base\Activation' not found
Class cannot be found, but the declaration is correct. Here is my code: Info-Wheel.php if ( file_exists( dirname( __FILE__ ) . "/vendor/autoload.php" ) ) { require_once dirname( __FILE__ )...
0 votes
1 answer
250 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) ...