Skip to content
📢 Block Lab users should migrate to Genesis Custom Blocks. Read how to migrate here.
Block Lab
  • Docs
  • Download
  • Log In
  • FAQs
  • Get Started
    • 1. Install Block Lab
    • 2. Add & Configure your first custom block
    • 3. Build your first block template
    • 4. Style your custom block
  • Fields
    • Checkbox
    • Color
    • Email
    • Image
    • Multi-Select
    • Number
    • Post
    • Radio
    • Range
    • Repeater
    • Rich Text
    • Select
    • Taxonomy
    • Text
    • Textarea
    • Toggle
    • URL
    • User
  • Functions
    • block_config()
    • block_field_config()
    • block_field()
    • block_row()
    • block_rows()
    • block_sub_field()
    • block_sub_value()
    • block_value()
    • reset_block_rows()

Docs › Functions

Functions

The following functions are available with the Block Lab plugin.

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

  • block_lab_add_block()
  • block_lab_add_field()

Download the Block Lab functions cheatsheet.

Code & Support
  • WordPress.org
Business
  • Privacy

© Copyright Block Lab 2022