建立WordPress套件的客制資料庫Creating Custom Database Tables for Your WordPress Plugins
In the majority of cases, plugins modify options, metadata or leverage already existing tables (most commonly the posts table) to create new functionality. Custom post types, custom taxonomies, image manipulation, galleries, shortcodes – none of these usually need their own database table. This is because the database schema of WordPress (how the database is organized) lends itself well to development. The posts table can be used to store objects, and the postmeta table can be used to store additional information about these objects. In some situations, however, this becomes cumbersome and/or wasteful. Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal. Watch the video內容出處: Creating Custom Database Tables for Your WordPress Plugins