goblindegook/shorthand 问题修复 & 功能扩展

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

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

goblindegook/shorthand

最新稳定版本:1.2.0

Composer 安装命令:

composer require goblindegook/shorthand

包简介

A WordPress shortcode pack, from my site to yours.

README 文档

README

Packagist Scrutinizer Code Quality

A bunch of shortcodes developed for my site, now offered to the public. Shortcake is supported because, honestly, who doesn't love cake?

Installation

This plugin is not (yet?) available in the repository, Composer is the recommended way to install it:

$ composer require goblindegook/shorthand

If you want to know more about using Composer with WordPress, there's a good introduction at the Roots project site.

Shortcodes

Pull Quote

Renders a pull quote aside block with pull-quote and pull-quote--<center|left|right> classes. Integrates with Shortcake.

Usage: [pull-quote align="<center|left|right>"]CONTENT[/pull-quote]

Small Caps

Renders an inline element with a small-caps class.

Usage: [small-caps]CONTENT[/small-caps]

Underline

Renders an inline element with an underline class.

Usage: [u]CONTENT[/u]

Hooks

Filter: shorthand_scripts

Allows plugin and theme developers to filter or turn off the scripts bundled with Shorthand.

The quickest way to disable them completely is by calling add_filter( 'shorthand_scripts', '__return_empty_array' ); at the init step.

It's up to developers to enqueue their own replacement scripts for the frontend as well as Shortcake's live preview.

Parameters

$scripts : (array) Script URLs as (handle, URL) pairs.

$tag : (string) Shortcode tag name.

Filter: shorthand_styles

Allows plugin and theme developers to filter or turn off the stylesheets bundled with Shorthand.

The quickest way to disable them completely is by calling add_filter( 'shorthand_styles', '__return_empty_array' ); at the init step.

It's up to developers to enqueue their own replacement styles for the frontend as well as Shortcake's live preview.

Parameters

$styles : (array) Stylesheet URLs as (handle, URL) pairs.

$tag : (string) Shortcode tag name.

Filter: shorthand_shortcode

Allows plugin and theme developers to filter the output of a shortcode.

Parameters

$output : (string) Shortcode output to filter.

$atts : (array) Shortcode attributes.

$content : (string) Original inner content (for closing shortcodes).

$tag : (string) Shortcode tag.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-07-18