plugin-icon

WP247 Get Option Shortcode

Include WordPress options anywhere shortcodes are accepted.
평가
최근 업데이트일
August 8, 2021
버전
1.2
활성화된 설치 항목
10

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:

무료Creator 요금제에서
활성화된 설치 항목
10
테스트된 버전
5.8.10
이 플러그인은 다운로드 가능하며 워드프레스 독립 호스트 설치에 사용할 수 있습니다.