{"id":19414054,"url":"https://github.com/wpscholar/wp-context","last_synced_at":"2025-06-24T04:06:25.463Z","repository":{"id":57082339,"uuid":"103689954","full_name":"wpscholar/wp-context","owner":"wpscholar","description":"A WordPress context library based on WordPress' built-in template hierarchy.","archived":false,"fork":false,"pushed_at":"2020-03-18T20:35:40.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T04:33:12.753Z","etag":null,"topics":["wordpress","wordpress-php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/wpscholar.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":"2017-09-15T18:40:56.000Z","updated_at":"2020-03-18T20:35:42.000Z","dependencies_parsed_at":"2022-08-24T14:58:19.973Z","dependency_job_id":null,"html_url":"https://github.com/wpscholar/wp-context","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/wpscholar%2Fwp-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpscholar","download_url":"https://codeload.github.com/wpscholar/wp-context/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpscholar%2Fwp-context/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259093729,"owners_count":22804228,"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":["wordpress","wordpress-php-library"],"created_at":"2024-11-10T12:36:02.533Z","updated_at":"2025-06-10T14:38:36.472Z","avatar_url":"https://github.com/wpscholar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Context\nA WordPress context library based on WordPress' built-in template hierarchy.\n\n## What It Does\nDesigned to be used after the main WordPress query has run, this context library will return an array of slugs representing the current context.\n\n## How to Use It\n\n1. Add to your project via [Composer](https://getcomposer.org/):\n\n```bash\n$ composer require wpscholar/wp-context\n```\n\n2. Make sure you have added the Composer autoloader to your project:\n\n```php\n\u003c?php \n\nrequire __DIR__ . '/vendor/autoload.php';\n```\n\n3. Call the static method for fetching context:\n\n```php\n\u003c?php\n\nuse wpscholar\\WordPress\\Context;\n\n$context = Context::getContext();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpscholar%2Fwp-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpscholar%2Fwp-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpscholar%2Fwp-context/lists"}