WP247 Get Option Shortcode

WP247 Get Option Shortcode Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 993 downloads
WP247 Get Option Shortcode Icon

Try plugin: WP247 Get Option Shortcode

We'll create fresh WordPress site with WP247 Get Option Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About WP247 Get Option Shortcode

Include WordPress options anywhere shortcodes are accepted.

0


0


0


0


0

updated: 3 years ago
since: 9 years ago
author: wp247

Description

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: