https://github.com/wpscholar/wp-context
A WordPress context library based on WordPress' built-in template hierarchy.
https://github.com/wpscholar/wp-context
wordpress wordpress-php-library
Last synced: 7 months ago
JSON representation
A WordPress context library based on WordPress' built-in template hierarchy.
- Host: GitHub
- URL: https://github.com/wpscholar/wp-context
- Owner: wpscholar
- Created: 2017-09-15T18:40:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T20:35:40.000Z (almost 6 years ago)
- Last Synced: 2025-04-03T04:33:12.753Z (10 months ago)
- Topics: wordpress, wordpress-php-library
- Language: PHP
- Size: 2.93 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WordPress Context
A WordPress context library based on WordPress' built-in template hierarchy.
## What It Does
Designed to be used after the main WordPress query has run, this context library will return an array of slugs representing the current context.
## How to Use It
1. Add to your project via [Composer](https://getcomposer.org/):
```bash
$ composer require wpscholar/wp-context
```
2. Make sure you have added the Composer autoloader to your project:
```php