grottopress / wordpress-breadcrumbs
Build and display breadcrumbs for WordPress pages
v1.0.0
2023-05-31 17:36 UTC
Requires
- php: >=7.0
- grottopress/getter: ^1.0
- grottopress/wordpress-page: ^1.0
Requires (Dev)
README
Build and display breadcrumbs for WordPress pages
Installation
Install via composer:
composer require grottopress/wordpress-breadcrumbs
Usage
<?php declare (strict_types = 1); use GrottoPress\WordPress\Breadcrumbs; use GrottoPress\WordPress\Page; // Instantiate $breadcrumbs = new Breadcrumbs(new Page(), [ 'home_label' => \esc_html__('Home'), 'delimiter' => '/', 'before' => \esc_html__('Path: '), ]); // Render $breadcrumbs->render();
Development
Run tests with composer run test
.
Contributing
- Fork it
- Switch to the
master
branch:git checkout master
- Create your feature branch:
git checkout -b my-new-feature
- Make your changes, updating changelog and documentation as appropriate.
- Commit your changes:
git commit
- Push to the branch:
git push origin my-new-feature
- Submit a new Pull Request against the
GrottoPress:master
branch.