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