{"id":17396,"date":"2019-07-11T11:26:53","date_gmt":"2019-07-11T01:26:53","guid":{"rendered":"https:\/\/getblocklab.com\/?post_type=docs&#038;p=17396"},"modified":"2020-08-28T18:29:02","modified_gmt":"2020-08-28T18:29:02","slug":"functions","status":"publish","type":"page","link":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/","title":{"rendered":"Functions"},"content":{"rendered":"\n<p>Genesis Custom Blocks includes the following functions.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Basic Helper Functions<\/strong><\/p>\n\n\n\n<ul class=\"code-links wp-block-list\"><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_field\/\">block_field()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_value\/\">block_value()<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-large-font-size\"><strong>Config Functions<\/strong><\/p>\n\n\n\n<ul class=\"code-links wp-block-list\"><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_config\/\">block_config()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_field_config\/\">block_field_config()<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-large-font-size\"><strong>Repeater Functions<\/strong><\/p>\n\n\n\n<ul class=\"code-links wp-block-list\"><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_row\/\">block_row()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_rows\/\">block_rows()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_sub_field\/\">block_sub_field()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_sub_value\/\">block_sub_value()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/reset_block_rows\/\">reset_block_rows()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_row_index\/\">block_row_index()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/block_row_count\/\">block_row_count()<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-large-font-size\"><strong>PHP API Functions<\/strong><\/p>\n\n\n\n<ul class=\"code-links wp-block-list\"><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/add_block\/\">add_block()<\/a><\/li><li><a href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/add_field\/\">add_field()<\/a><\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Genesis Custom Blocks includes the following functions. Basic Helper Functions block_field() block_value() Config Functions block_config() block_field_config() Repeater Functions block_row() block_rows() block_sub_field() block_sub_value() reset_block_rows() block_row_index() block_row_count() PHP API Functions add_block() add_field()<\/p>\n","protected":false},"author":447,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"class_list":{"0":"post-17396","1":"page","2":"type-page","3":"status-publish","5":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Functions - Genesis Custom Blocks<\/title>\n<meta name=\"description\" content=\"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Functions - Genesis Custom Blocks\" \/>\n<meta property=\"og:description\" content=\"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Genesis Custom Blocks\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-28T18:29:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website\",\"url\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/\",\"name\":\"Genesis Custom Blocks\",\"description\":\"Create effective content faster.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#webpage\",\"url\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/\",\"name\":\"Functions - Genesis Custom Blocks\",\"isPartOf\":{\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website\"},\"datePublished\":\"2019-07-11T01:26:53+00:00\",\"dateModified\":\"2020-08-28T18:29:02+00:00\",\"description\":\"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Functions\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Functions - Genesis Custom Blocks","description":"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.","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:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/","og_locale":"en_US","og_type":"article","og_title":"Functions - Genesis Custom Blocks","og_description":"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.","og_url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/","og_site_name":"Genesis Custom Blocks","article_modified_time":"2020-08-28T18:29:02+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website","url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/","name":"Genesis Custom Blocks","description":"Create effective content faster.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#webpage","url":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/","name":"Functions - Genesis Custom Blocks","isPartOf":{"@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/#website"},"datePublished":"2019-07-11T01:26:53+00:00","dateModified":"2020-08-28T18:29:02+00:00","description":"Use functions with your custom Gutenberg blocks using the Block Lab WordPress plugin.","breadcrumb":{"@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/"},{"@type":"ListItem","position":2,"name":"Functions"}]}]}},"featured_image_src":null,"featured_image_src_square":null,"_links":{"self":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages\/17396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/users\/447"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/comments?post=17396"}],"version-history":[{"count":0,"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/pages\/17396\/revisions"}],"wp:attachment":[{"href":"https:\/\/developer.wpengine.com\/genesis-custom-blocks\/wp-json\/wp\/v2\/media?parent=17396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}