Retrieve data from the current widget area in use.
beans_get_widget_area( string|bool $needle = false )
Return: (string) The current widget area data, or field data if the needle is specified. False if not found.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$needle | string|bool | false | false | The searched widget area needle. |
Source
function beans_get_widget_area( $needle = false ) {
global $_beans_widget_area;
if ( ! $needle ) {
return $_beans_widget_area;
}
return beans_get( $needle, $_beans_widget_area );
}