block_config()

Description

The block_config() function is a helper function for returning the block’s settings.

block_config();

Parameters

  • None.

Usage

In this example, the block_config() function outputs the block’s icon from its settings.

$block = block_config();
$icon  = $block['icon'];
$icons = block_lab_get_icons();

if ( isset( $icons[ $icon ] ) ) {
	echo $icons[ $icon ];
}