Tribe__Editor__Blocks__Abstract::attributes( $params = array() )
Return the block attributes
Contents
Parameters
- $attributes
-
(array) (Required)
Return
(array)
Source
File: src/Tribe/Editor/Blocks/Abstract.php
public function attributes( $params = array() ) {
// get the default attributes
$default_attributes = $this->default_attributes();
// parse the attributes with the default ones
$attributes = wp_parse_args(
$params,
$default_attributes
);
/**
* Filters the default attributes for the block
*
* @param array $attributes The attributes
* @param object $this The current object
*/
$attributes = apply_filters( 'tribe_block_attributes_defaults_' . $this->slug(), $attributes, $this );
return $attributes;
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |