このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

WP247 Get Option Shortcode

説明

Include WordPress options anywhere shortcodes are accepted.

Syntax

[wp247_get_option option=”desired-option” default=”desired-default” scope=”desired-scope“]

where:

  • desired-option is the option to be retrieved from the WordPress wp_options table. Default: none

  • desired-default is the default value to be returned if the desired option does not exist. Default: “”

  • desired-scope indicates which type of option is to be retrieved. scope=”site” will retrieve options using the WordPress get_site_option function. All other values are ignored and the WordPress get_option function will be used to retrieve the desired option value. Default: “”

Examples

Include the WordPress site URL in some text somewhere:

  • This is my site’s URL: [wp247_get_option option=”siteurl”].

Set up a copyright notice in a footer widget:

インストール

In the site’s WordPress backend:

  • Go to Plugins->Add New
  • Search for the plugin ‘wp247 get option shortcode’
  • Click the “Install” button
  • Click on “Activate”

That’s it. You’re now ready to include WordPress options on your site.

評価

このプラグインにはレビューがありません。

貢献者と開発者

WP247 Get Option Shortcode はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WP247 Get Option Shortcode” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.2

Removed Notifications Plugin corequisite
Fix Settings API for PHP v7
Update Admin Favorites

1.1

fixed settings API bug
Added WP247 Extension Notification System interface

1.0.1

Remove namespace use in WP247 Settings API to due errors

1.0

First release on 2015-April-9