Register API component support.
beans_add_api_component_support( string $feature )
Return: (bool) Will always return true.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$feature | string | true | - | The feature to register. |
$var | mixed | true | - | Additional variables passed to component support. |
Source
function beans_add_api_component_support( $feature ) {
global $_beans_api_components_support;
$args = func_get_args();
if ( 1 == func_num_args() ) {
$args = true;
} else {
$args = array_slice( $args, 1 );
}
$_beans_api_components_support[ $feature ] = $args;
return true;
}