承接 morningtrain/wp-breadcrumbs 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

morningtrain/wp-breadcrumbs

最新稳定版本:v0.2.0

Composer 安装命令:

composer require morningtrain/wp-breadcrumbs

包简介

Autogenerated breadcrumbs for WordPress

README 文档

README

Autogenerated breadcrumbs for WordPress.

Table of Contents

Introduction

This package is made to make it simple to add breadcrumbs to WordPress.

Getting started

To get started install the package as described below in Installation.

To use the package have a look at Usage

Installation

Install with composer.

composer require morningtrain/wp-breadcrumbs

Usage

To get started with the module simply compose and render the breadcrumbs.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->render();

Change Seperator

You can change the seperator by calling seperator on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->separator(' >> ')->render();

Hide on Front Page

You can easily hide the breadcrumbs on the frontpage by calling hideOnFrontPage on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->hideOnFrontPage()->render();

Remove Prefixed Front Page

You can remove the prefixed front page breadcrumb on all pages by calling hidePrefixedFrontPagePart on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->hidePrefixedFrontPagePart()->render();

Exclude terms

You can easily hide the terms from the breadcrumbs by using excludeTaxonomies on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->excludeTaxonomies(['category'])->render();

Exclude post type archive

You can easily hide the post type archive from the breadcrumbs by using excludePostTypeArchives on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->excludePostTypeArchives(['post'])->render();

Alternative to Render

If you will create your own markup, you can get all breadcrumb parts by calling getBreadcrumbs on the BreadcrumbGenerator.

\Morningtrain\WP\Breadcrumbs\Breadcrumbs::compose()->getBreadcrumbs();

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固