- This topic has 3 replies, 2 voices, and was last updated 1 year, 9 months ago by .
-
Topic
-
I’m trying to set up custom table for saving custom user meta, but I cannot get it to work. It works fine if I select
post
for custom fields group type, but not if I selectuser
.Here’s the code I’m using for table creation:
add_action( 'init', 'prefix_create_user_table' ); function prefix_create_user_table() { if ( ! class_exists( 'MB_Custom_Table_API' ) ) { return; } MB_Custom_Table_API::create( 'prefix_users_data', array( 'user_credits' => 'BIGINT(10)', )); }
For custom fields group definitions I’m using Metabox AIO and builder, with all extensions enabled.
Where’s the catch?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.