Title: WP247 Get Option Shortcode
Author: wescleveland
Published: <strong>2015 年 4 月 9 日</strong>
Last modified: 2021 年 8 月 8 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/wp247-get-option-shortcode.svg)

# WP247 Get Option Shortcode

 作者：[wescleveland](https://profiles.wordpress.org/wescleveland/)

[下载](https://downloads.wordpress.org/plugin/wp247-get-option-shortcode.1.2.zip)

 * [详情](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/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:

 * Copyright © [[wp247_get_option option=’blogname’]](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/[wp247_get_option option='siteurl']?output_format=md).
   All rights reserved.

## 安装

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」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

[帮助将「WP247 Get Option Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp247-get-option-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp247-get-option-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp247-get-option-shortcode/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/wp247-get-option-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp247-get-option-shortcode/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.2**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp247-get-option-shortcode/)
 * 标签
 * [get_option](https://cn.wordpress.org/plugins/tags/get_option/)[options](https://cn.wordpress.org/plugins/tags/options/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp247-get-option-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp247-get-option-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp247-get-option-shortcode/reviews/)

## 贡献者

 *   [ wescleveland ](https://profiles.wordpress.org/wescleveland/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp247-get-option-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RM26LBV2K6NAU)