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
- Creating 20,000 Posts or Pages using a .csv file?
- Search and replace text across all posts
- Convert WordPress posts to products in WooCommerce
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Bad Request (Invalid Hostname) on working server, database problem
- Create custom column in post table in wordpress
- How can I list only sites that use a particular theme or plugin?
- Changing BIGINT to INT
- The plugin generated x characters of unexpected output, $wpdb not defined
- Replace existing pages with new pages, keep menu links
- Can I run multiple queries with $wpdb->prepare?
- How to remove duplicate Custom Fields?
- How to write one comment and publish on every post using database or plugin?
- How to get number of Affected rows from wordpress dbDelta() function
- MySql database help for a plugin
- How to remove Database Table in WordPress via Function file?
- Bulk edit existing shortcode within custom field
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- Creating mySQL procedure with $wpdb
- DROP TABLE with uninstall hook not working
- WpDataTables – View Image Directory
- get current date + 90 days and checking every day
- How do I run SQL queries on a WordPress web page? [closed]
- How can I perform high-level database merging for WordPress within continues delivery?
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- Insert data from .sql file in wordpress plugin
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- WordPress Backend HA (Automatic failover)
- Automatic switch to backup database on fail
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Create a table with wordpress plugin boilerplate
- WordPress page and plugin list using sql query
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- WP-DownloadManager – Query most download per week/month etc
- 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
- Mass SQL WordPress Meta Key deletion
- 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”
- 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?
- 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
- 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
- add_action for publish_post doesn’t work
- 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
- Getting current user data with MySQL statement
- How to get the custom field value using SQL query
- 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?
- 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
- create pages automatically and dynamically in wordPress
- Cant create table on plugin activation
- $wpdb->delete not working for me
- A dynamic table plugin to get user input
- Performing CRUD operations on front end in wordpress
- Display a number value from mysql query in WP
- WordPress UPDATE queries on MySQL database stuck
- 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?
- Delete user meta based on key value that is an array
- HyperDB failover Delay
- Re-writing MySQl query for execute faster
- Create Database Tables on Plugin Activation hook
- how to create table during plugin installation in side a class
- 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
- 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
- Trying to insert a row from a Plugin
- 504/502 errors plauging our site
- Identifying Plugins Based on Tables [closed]
- How can I delete the options from DB when the plugin is deleted?
- Split Million WordPress Post’s Into Multiple Database Server
- How to set an exact search box in tablepress plug-in