{"id":2105,"date":"2016-05-12T10:43:27","date_gmt":"2016-05-12T10:43:27","guid":{"rendered":"http:\/\/www.websitedesignwebsitedevelopment.com\/?p=2105"},"modified":"2016-05-12T10:44:20","modified_gmt":"2016-05-12T10:44:20","slug":"wordpress-helper-function-checked","status":"publish","type":"post","link":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/","title":{"rendered":"WordPress helper function checked"},"content":{"rendered":"<h2>WordPress helper function <span style=\"color: #808080;\"><strong>checked<\/strong><\/span><\/h2>\n<p><strong>Older Method:<\/strong><\/p>\n<p>&lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php echo\u00a0 in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] )?&#8217;checked=&#8221;checked&#8221;&#8216;:&#8221;; ?&gt; \/&gt;<\/p>\n<p><strong>Preferred Method:<\/strong><\/p>\n<p>&lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt;<\/p>\n<p>&lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; \/&gt;<\/p>\n<p><a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/checked\" target=\"_blank\">Click here for details on WordPress.org<\/a><\/p>\n<p><a href=\"https:\/\/fahadmahmoodblog.wordpress.com\/2016\/05\/12\/function-referencechecked\/\" target=\"_blank\">Click here for screenshots<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress helper function checked Older Method: &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php echo\u00a0 in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] )?&#8217;checked=&#8221;checked&#8221;&#8216;:&#8221;; ?&gt; \/&gt; Preferred Method: &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; \/&gt; Click here for details on WordPress.org Click here for screenshots<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-2105","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress helper function checked - AndroidBubble Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress helper function checked - AndroidBubble Blog\" \/>\n<meta property=\"og:description\" content=\"WordPress helper function checked Older Method: &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php echo\u00a0 in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] )?&#8217;checked=&#8221;checked&#8221;&#8216;:&#8221;; ?&gt; \/&gt; Preferred Method: &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; \/&gt; Click here for details on WordPress.org Click here for screenshots\" \/>\n<meta property=\"og:url\" content=\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\" \/>\n<meta property=\"og:site_name\" content=\"AndroidBubble Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-12T10:43:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-12T10:44:20+00:00\" \/>\n<meta name=\"author\" content=\"Fahad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\"},\"author\":{\"name\":\"Fahad\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"headline\":\"WordPress helper function checked\",\"datePublished\":\"2016-05-12T10:43:27+00:00\",\"dateModified\":\"2016-05-12T10:44:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\"},\"wordCount\":87,\"articleSection\":[\"Wordpress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\",\"url\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\",\"name\":\"WordPress helper function checked - AndroidBubble Blog\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\"},\"datePublished\":\"2016-05-12T10:43:27+00:00\",\"dateModified\":\"2016-05-12T10:44:20+00:00\",\"author\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"breadcrumb\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/androidbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Development\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Frameworks\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/php-frameworks\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Wordpress\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/php-frameworks\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"WordPress helper function checked\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\",\"url\":\"https:\/\/androidbubble.com\/blog\/\",\"name\":\"AndroidBubble Blog\",\"description\":\"Articles &amp; Posts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/androidbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\",\"name\":\"Fahad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"caption\":\"Fahad\"},\"sameAs\":[\"http:\/\/www.androidbubbles.com\/\",\"https:\/\/x.com\/phpFlex\"],\"url\":\"https:\/\/androidbubble.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress helper function checked - AndroidBubble Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/","og_locale":"en_US","og_type":"article","og_title":"WordPress helper function checked - AndroidBubble Blog","og_description":"WordPress helper function checked Older Method: &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php echo\u00a0 in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] )?&#8217;checked=&#8221;checked&#8221;&#8216;:&#8221;; ?&gt; \/&gt; Preferred Method: &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; &lt;input type=&#8221;checkbox&#8221; id=&#8221;tutorsloop_share&#8221; name=&#8221;wpe_sharing[social_options][]&#8221; value=&#8221;tl&#8221; &lt;?php checked( in_array( &#8216;tl&#8217;, $opts[&#8216;social_options&#8217;] ), true ); ?&gt; \/&gt; Click here for details on WordPress.org Click here for screenshots","og_url":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/","og_site_name":"AndroidBubble Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453","article_published_time":"2016-05-12T10:43:27+00:00","article_modified_time":"2016-05-12T10:44:20+00:00","author":"Fahad","twitter_misc":{"Written by":"Fahad"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#article","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/"},"author":{"name":"Fahad","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"headline":"WordPress helper function checked","datePublished":"2016-05-12T10:43:27+00:00","dateModified":"2016-05-12T10:44:20+00:00","mainEntityOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/"},"wordCount":87,"articleSection":["Wordpress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/","url":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/","name":"WordPress helper function checked - AndroidBubble Blog","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/#website"},"datePublished":"2016-05-12T10:43:27+00:00","dateModified":"2016-05-12T10:44:20+00:00","author":{"@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"breadcrumb":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/androidbubble.com\/blog\/website-development\/php-frameworks\/wordpress\/wordpress-helper-function-checked\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/androidbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Development","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/"},{"@type":"ListItem","position":3,"name":"PHP Frameworks","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/php-frameworks\/"},{"@type":"ListItem","position":4,"name":"Wordpress","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/php-frameworks\/wordpress\/"},{"@type":"ListItem","position":5,"name":"WordPress helper function checked"}]},{"@type":"WebSite","@id":"https:\/\/androidbubble.com\/blog\/#website","url":"https:\/\/androidbubble.com\/blog\/","name":"AndroidBubble Blog","description":"Articles &amp; Posts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/androidbubble.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7","name":"Fahad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","caption":"Fahad"},"sameAs":["http:\/\/www.androidbubbles.com\/","https:\/\/x.com\/phpFlex"],"url":"https:\/\/androidbubble.com\/blog\/author\/admin\/"}]}},"views":392,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/2105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=2105"}],"version-history":[{"count":2,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/2105\/revisions"}],"predecessor-version":[{"id":2107,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/2105\/revisions\/2107"}],"wp:attachment":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=2105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=2105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=2105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}