Skip to content

Create default database tables for a WordPress (WP) theme after loading WP. The function uses "wpdb class" to create the required table if it doesn't exist. Function is fired by "init hook".

Notifications You must be signed in to change notification settings

tomm-tomm/wp-init-db-tables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

This file contains one function which creates default database tables for a WordPress (WP) theme after loading WP. The function uses "wpdb class" to create the required table if it doesn't exist. Function is fired by "init hook".

The function provides an option to add one preset row to the table. This is useful for tables where multiple rows are not needed (e.g. when editing settings, etc.).

About

Create default database tables for a WordPress (WP) theme after loading WP. The function uses "wpdb class" to create the required table if it doesn't exist. Function is fired by "init hook".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages