{"id":22646035,"url":"https://github.com/vunamhung/cmb2_tab","last_synced_at":"2025-10-19T17:01:33.439Z","repository":{"id":62545692,"uuid":"235286999","full_name":"vunamhung/cmb2_tab","owner":"vunamhung","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-26T02:45:15.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T20:21:23.369Z","etag":null,"topics":["cmb2","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vunamhung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-21T08:09:20.000Z","updated_at":"2024-09-25T21:34:07.000Z","dependencies_parsed_at":"2022-11-02T22:00:45.864Z","dependency_job_id":null,"html_url":"https://github.com/vunamhung/cmb2_tab","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunamhung%2Fcmb2_tab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunamhung%2Fcmb2_tab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunamhung%2Fcmb2_tab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vunamhung%2Fcmb2_tab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vunamhung","download_url":"https://codeload.github.com/vunamhung/cmb2_tab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248252717,"owners_count":21072701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmb2","wordpress"],"created_at":"2024-12-09T06:08:35.348Z","updated_at":"2025-10-19T17:01:33.316Z","avatar_url":"https://github.com/vunamhung.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CMB2 Tab\n\nTabs for [CMB2](https://github.com/WebDevStudios/CMB2).\n\n## How it works?\n\nThis plugin adds new parameters to CMB2 boxes:\n\n* vertical_tabs (bool)\n* tabs (array)\n\n## Example\n```php\nadd_action( 'cmb2_admin_init', 'cmb2_sample_metabox' );\nfunction cmb2_sample_metabox() {\n\t$cmb_demo = new_cmb2_box([\n\t\t'id' =\u003e 'metabox',\n\t\t'title' =\u003e __('Test Metabox', 'cmb2'),\n\t\t'object_types' =\u003e ['page', 'post'], // Post type\n\t\t'vertical_tabs' =\u003e true, // Set vertical tabs, default false\n\t\t'tabs' =\u003e [\n\t\t\t[\n\t\t\t\t'id' =\u003e 'tab-1',\n\t\t\t\t'icon' =\u003e 'dashicons-admin-site',\n\t\t\t\t'title' =\u003e 'Tab 1',\n\t\t\t\t'fields' =\u003e ['field_1', 'field_2'],\n\t\t\t],\n\t\t\t[\n\t\t\t\t'id' =\u003e 'tab-2',\n\t\t\t\t'icon' =\u003e 'dashicons-align-left',\n\t\t\t\t'title' =\u003e 'Tab 2',\n\t\t\t\t'fields' =\u003e ['field_3', 'field_4'],\n\t\t\t],\n\t\t],\n\t]);\n\n\t$cmb_demo-\u003eadd_field([\n\t\t'name' =\u003e __('Test field 1', 'cmb2'),\n\t\t'id' =\u003e 'field_1',\n\t\t'type' =\u003e 'text',\n\t]);\n\n\t$cmb_demo-\u003eadd_field([\n\t\t'name' =\u003e __('Test field 2', 'cmb2'),\n\t\t'id' =\u003e 'field_2',\n\t\t'type' =\u003e 'text',\n\t]);\n\n\t$cmb_demo-\u003eadd_field([\n\t\t'name' =\u003e __('Test field 3', 'cmb2'),\n\t\t'id' =\u003e 'field_3',\n\t\t'type' =\u003e 'text',\n\t]);\n\n\t$cmb_demo-\u003eadd_field([\n\t\t'name' =\u003e __('Test field 4', 'cmb2'),\n\t\t'id' =\u003e 'field_4',\n\t\t'type' =\u003e 'text',\n\t]);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvunamhung%2Fcmb2_tab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvunamhung%2Fcmb2_tab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvunamhung%2Fcmb2_tab/lists"}