Finally i replaced
register_activation_hook( __FILE__, 'lots_install' );
to
add_action('activated_plugin','lots_install');
and work well !!!
Related Posts:
- Multiple instance of data in plugin custom database table on plugin activation
- Can’t create tables with my plugin
- Share or sync user table data with another user table
- Can I create a table on my DB without creating a plugin?
- Errors when trying to use a plugin to write to the database
- _prime_post_caches in wordpress
- pagination on data fetched using SQL query
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- Speeding SQL queries for a large database?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Mass SQL WordPress Meta Key deletion
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- dbDelta not adding additional columns in plugin database update
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Always get creating a new table with foreign key
- How to do database for download stats?
- How can I fetch data from another website to my wordpress website with mysql database
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- DB Query not working in Plugin
- External wpdb connections in different plugins on single page
- How can ι create my own (custom) WordPress table/list?
- speed up pagination for huge database
- Way to send multiple values for column to MySQL?
- Comment Approve – Add custom function when comment is approved
- Table is not created in WAMP
- Creating a search form and displaying results
- WordPress plugin: efficient way to store large data
- Plugin generating unexpected output – on WP mysql dump import
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Table appears in Visual mode of editor but not in preview or after publish
- Interface needed to transfer contents in a table on a web page to the Add New Product interface
- Integrating Custom Database with WordPress
- How to display results from a data table with an encrypted user id?
- Need to add/remove group of options and display them as rows
- Check against server time to display SQL entries – Radio Station DJ Rotator Plugin
- add_action for publish_post doesn’t work
- WordPress Cache delete on plugin uninstall
- need to find duplicated meta value in custom filed and view the posts that have the same value
- how can we migrate wordpress 5.9 website from aws ec2 to new installed wp 5.9 oci compute
- JOIN and SUM different statement results (Mailster Database)
- My CPU usage in A2 Hosting Shared Plan (Turbo Boost) is high due to mysql query!
- Getting current user data with MySQL statement
- How to get the custom field value using SQL query
- Memcaching recurring SQL Queries
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- What database state changes happen after a post is manually “updated” with no changes?
- WP Function does not trigger on Webhook API Call
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- Plugins custom table not being created on activation
- create pages automatically and dynamically in wordPress
- Cant create table on plugin activation
- $wpdb->delete not working for me
- How to get database connection details without longing to cpanel in WordPress?
- A dynamic table plugin to get user input
- Performing CRUD operations on front end in wordpress
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- Display a number value from mysql query in WP
- WordPress UPDATE queries on MySQL database stuck
- Store GravityForm data in phpmyadmin (mysql)
- Moving a few select DB tables to a new WP instance
- dbDelta not CREATING TABLE
- WordPress database problem wp_posts, primary key
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Login issue in WordPress
- Delete user meta based on key value that is an array
- get/show Last ID
- HyperDB failover Delay
- Resetting AUTO_INCREMENT primary key
- Need help for creating custom table on wordpress
- Re-writing MySQl query for execute faster
- Show a table from data submitted by a form from a user
- Adding list of Indexes in wordpress document
- Create Database Tables on Plugin Activation hook
- how to create table during plugin installation in side a class
- Plugin does not create a custom table upon activation
- Write mysql credentials in plugin
- Help with sorting and storing data on WordPress
- Slow WordPress admin panel with a total query time of 1664ms
- Linking Plugin Files to WP
- get_var result empty for query of custom table in plugin admin
- MySql Query for WordPress
- Carrying information from button click into form [closed]
- Simple Data Table Update and Page Integration
- Using wp config to connect to a DB from a plugin
- how to search through plugin in wordpress cimy-user-extra-fields?
- Get all the related data from WordPress DB
- How to display blog posts only authored by the administrator
- Trying to insert a row from a Plugin
- 504/502 errors plauging our site
- how to show the data from a myqsl database in a post [closed]
- Identifying Plugins Based on Tables [closed]
- Post sorting and ordering function in WordPress Admin is broken and always shows post from oldest to newest
- How can I delete the options from DB when the plugin is deleted?
- PHP Creating a formula from mysql db values and db stored math operator
- Split Million WordPress Post’s Into Multiple Database Server
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- How to set an exact search box in tablepress plug-in
- How to create specific wordpress Table