To modify the output of content blocks you can add a PHP script to functions.php, for example:

add_filter(‘gcb_block_output’, ‘alter_block_output’);
function alter_block_output($value) {
//process the output here, e.g., convert text to lowercase
$new_value = strtolower($value);
return “Processed output: “.$new_value;
}

will convert the output to lower case.

Filed under: GCB Advanced Usage

Like this post? Subscribe to my RSS feed and get loads more!