{"id":35544,"date":"2015-04-09T16:14:26","date_gmt":"2015-04-09T16:14:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp247-get-option-shortcode\/"},"modified":"2021-08-08T17:35:26","modified_gmt":"2021-08-08T17:35:26","slug":"wp247-get-option-shortcode","status":"publish","type":"plugin","link":"https:\/\/tuk.wordpress.org\/plugins\/wp247-get-option-shortcode\/","author":2086304,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"1.2","tested":"5.8.13","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"WP247 Get Option Shortcode","header_author":"wp247","header_description":"","assets_banners_color":"","last_updated":"2021-08-08 17:35:26","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=RM26LBV2K6NAU","header_plugin_uri":"","header_author_uri":"http:\/\/wp247.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1469,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"wescleveland","date":"2015-04-20 13:39:55"},"1.1":{"tag":"1.1","author":"wescleveland","date":"2017-12-14 21:56:41"},"1.2":{"tag":"1.2","author":"wescleveland","date":"2021-08-08 17:35:26"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.1","1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[25950,2218,80],"plugin_category":[43],"plugin_contributors":[86138],"plugin_business_model":[],"class_list":["post-35544","plugin","type-plugin","status-publish","hentry","plugin_tags-get_option","plugin_tags-options","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-wescleveland","plugin_committers-wescleveland"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp247-get-option-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Include WordPress options anywhere shortcodes are accepted.<\/p>\n\n<h4>Syntax<\/h4>\n\n<p>[wp247_get_option option=\"<strong>desired-option<\/strong>\" default=\"<strong>desired-default<\/strong>\" scope=\"<strong>desired-scope<\/strong>\"]<\/p>\n\n<p>where:<\/p>\n\n<ul>\n<li><p><strong>desired-option<\/strong> is the option to be retrieved from the WordPress wp_options table. Default: none<\/p><\/li>\n<li><p><strong>desired-default<\/strong> is the default value to be returned if the desired option does not exist. Default: \"\"<\/p><\/li>\n<li><p><strong>desired-scope<\/strong> indicates which type of option is to be retrieved. <strong>scope=\"site\"<\/strong> will retrieve options using the WordPress <strong>get_site_option<\/strong> function. All other values are ignored and the WordPress <strong>get_option<\/strong> function will be used to retrieve the desired <strong>option<\/strong> value. Default: \"\"<\/p><\/li>\n<\/ul>\n\n<h4>Examples<\/h4>\n\n<p>Include the WordPress site URL in some text somewhere:<\/p>\n\n<ul>\n<li>This is my site's URL: [wp247_get_option option=\"siteurl\"].<\/li>\n<\/ul>\n\n<p>Set up a copyright notice in a footer widget:<\/p>\n\n<ul>\n<li>Copyright &copy; <a href=\"[wp247_get_option option='siteurl']\">[wp247_get_option option='blogname']<\/a>. All rights reserved.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>In the site's WordPress backend:<\/p>\n\n<ul>\n<li>Go to Plugins-&gt;Add New<\/li>\n<li>Search for the plugin 'wp247 get option shortcode'<\/li>\n<li>Click the \"Install\" button<\/li>\n<li>Click on \"Activate\"<\/li>\n<\/ul>\n\n<p>That's it. You're now ready to include WordPress options on your site.<\/p>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<p>Removed Notifications Plugin corequisite\nFix Settings API for PHP v7\nUpdate Admin Favorites<\/p>\n\n<h4>1.1<\/h4>\n\n<p>fixed settings API bug\nAdded WP247 Extension Notification System interface<\/p>\n\n<h4>1.0.1<\/h4>\n\n<p>Remove namespace use in WP247 Settings API to due errors<\/p>\n\n<h4>1.0<\/h4>\n\n<p>First release on 2015-April-9<\/p>","raw_excerpt":"Include WordPress options anywhere shortcodes are accepted.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35544"}],"author":[{"embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wescleveland"}],"wp:attachment":[{"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35544"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35544"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35544"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35544"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35544"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tuk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}