- This topic has 6 replies, 2 voices, and was last updated 2 years, 5 months ago by .
-
Topic
-
Hi,
would you mind to suggest where do I go wrong?I’ve placed below code in functions.php
add_action( 'init', 'prefix_create_table' ); function prefix_create_table() { global $wpdb; if ( ! class_exists( 'MB_Custom_Table_API' ) ) { return; } MB_Custom_Table_API::create( $wpdb->prefix.'data_khusus', array( 'test_column' => 'TEXT NOT NULL' , 'test_column2' => 'TEXT NOT NULL' , ), array( 'test_column' ) ); }
But the above code is not working. No table is created and, of course, no data saved.
Is there any idea to fix my code here?Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.