grottopress / wordpress-breadcrumbs
Build and display breadcrumbs for WordPress pages
Installs: 958
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/grottopress/wordpress-breadcrumbs
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
masterbranch: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:masterbranch.