PHP code example of grottopress / wordpress-breadcrumbs
1. Go to this page and download the library: Download grottopress/wordpress-breadcrumbs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
grottopress / wordpress-breadcrumbs example snippets
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();