{"id":22266459,"url":"https://github.com/objectivco/wp_tabbed_navigation","last_synced_at":"2025-07-28T10:32:59.746Z","repository":{"id":57029879,"uuid":"106842804","full_name":"Objectivco/WP_Tabbed_Navigation","owner":"Objectivco","description":"Automate creating a tabbed navigation and maintaining tabbed states","archived":false,"fork":false,"pushed_at":"2021-04-07T21:29:45.000Z","size":18,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-28T09:21:43.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Objectivco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-13T15:37:44.000Z","updated_at":"2021-04-07T21:29:48.000Z","dependencies_parsed_at":"2022-08-23T17:40:50.418Z","dependency_job_id":null,"html_url":"https://github.com/Objectivco/WP_Tabbed_Navigation","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Objectivco%2FWP_Tabbed_Navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Objectivco%2FWP_Tabbed_Navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Objectivco%2FWP_Tabbed_Navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Objectivco%2FWP_Tabbed_Navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Objectivco","download_url":"https://codeload.github.com/Objectivco/WP_Tabbed_Navigation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227895774,"owners_count":17836471,"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":[],"created_at":"2024-12-03T10:18:50.913Z","updated_at":"2024-12-03T10:18:51.547Z","avatar_url":"https://github.com/Objectivco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP_Tabbed_Navigation\nAutomate creating a tabbed navigation and maintaining tabbed states\n\n## Installing\nUse composer:\n```txt\ncomposer require objectivco/wp_tabbed_navigation\n```\n\nOr include the file. (But really, just use composer)\n\n## Initiating the Tab System\n```php\n$wp_tabbed_navigation = new WP_Tabbed_Navigation( 'My Plugin Settings', $selected_tab_query_arg = 'subpage' );\n```\n\n## Setup Some Submenus\n### These will be linked to our tab'\n```php\nadd_options_page( __( 'My Plugin Settings', 'my-plugin' ), __( 'My Plugin Settings', 'my-plugin' ), 'manage_options', 'my-plugin-settings', array($this, 'admin_page') );\n```\n\n## Setup Tabs Using The Same Menu Slugs\n```php\n$wp_tabbed_navigation-\u003eadd_tab( 'Settings', add_query_arg( array('subpage' =\u003e 'settings'), menu_page_url('my-plugin-settings', false) ) );\n$wp_tabbed_navigation-\u003eadd_tab( 'Add-ons', add_query_arg( array('subpage' =\u003e 'addons'), menu_page_url('my-plugin-settings', false) ) );\n$wp_tabbed_navigation-\u003eadd_tab( 'License', add_query_arg( array('subpage' =\u003e 'license'), menu_page_url('my-plugin-settings', false) ) );\n$wp_tabbed_navigation-\u003eadd_tab( 'Support', add_query_arg( array('subpage' =\u003e 'support'), menu_page_url('my-plugin-settings', false) ) );\n```\n\n## Displaying the Tabs\n### Add this to the top of each admin page in a tab.\n\n```php\n$wp_tabbed_navigation-\u003edisplay_tabs();\n```\n\n## That's it! Have fun kids.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectivco%2Fwp_tabbed_navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectivco%2Fwp_tabbed_navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectivco%2Fwp_tabbed_navigation/lists"}