gb_get_field()
This method allows you to retrieve Block metadata programmatically.
<?php
// for ACF
if (function_exists('gb_get_field')) {
$value = gb_get_field('acf_my_value');
}
// for Metabox
if (function_exists('gb_get_field')) {
$value = gb_get_field('mb_bricks_template_my_value');
}get_gutenbricks_meta($key, $post_id, $args)
Last updated