Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Classes / WC_Meta_Data / WC_Meta_Data::__get()

WC_Meta_Data::__get( string $key )

Returns the value of any property.

Contents

  • Description
    • Parameters
    • Return
    • Source
  • User Contributed Notes

Description #Description


Parameters #Parameters

$key

(Required) Key to get.


Top ↑

Return #Return

(mixed) Property value or NULL if it does not exists


Top ↑

Source #Source

File: includes/class-wc-meta-data.php

	public function __get( $key ) {
		if ( array_key_exists( $key, $this->current_data ) ) {
			return $this->current_data[ $key ];
		}
		return null;
	}

Expand full source code Collapse full source code


Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress