Retrieves a specific metadata item for the ability.
Parameters
$keystringrequired- The metadata key to retrieve.
$default_valuemixedoptional- The default value to return if the metadata item is not found.
Default:
null
Source
public function get_meta_item( string $key, $default_value = null ) {
return array_key_exists( $key, $this->meta ) ? $this->meta[ $key ] : $default_value;
}
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.