waughj/wp-post-link 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

waughj/wp-post-link

Composer 安装命令:

composer require waughj/wp-post-link

包简介

A simpler way to get link HTML by passing a post slug, ID, or WP_Post object.

README 文档

README

A simpler way to get link HTML by passing a post slug, ID, or WP_Post object.

Example

Get post by slug:

use WaughJ\WPPostLink\WPPostLink;
$link = new WPPostLink([ 'slug' => 'contact-us' ]);
echo $link;

Changelog

0.2.8

  • Fix getting post by slug so that it works for children of other pages
    • Previous version using slug inadvertedly seeked page by path, not slug. Now using a slug seeks by slug specifically

0.2.7

  • Update TestHashItem dependency

0.2.6

  • Make compatible with WordPress plugin rules

0.2.5

  • Make compatible with WordPress plugin rules

0.2.4

  • Make compatible with WordPress

0.2.3

  • Make compatible with WordPress plugin rules

0.2.2

  • Make default post_type mo' inclusive
    • Make default post_type mo' inclusive so that it includes all types o' posts 'stead o' just pages.

0.2.1

  • Incorporate bugfix from HTMLLink

0.2.0

  • Add PostType

0.1.0

  • Create initial usable release

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2018-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固