Description
The block_config() function is a helper function for returning the block’s settings.
block_config();
Parameters
- None.
In this example, the block_config() function outputs the block’s icon from its settings.
$block = block_config();
$icon = $block['icon'];
$icons = genesis_custom_blocks()->get_icons();
if ( isset( $icons[ $icon ] ) ) {
echo $icons[ $icon ];
}
