Dev Resources

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

WC_Meta_Data::__construct( array $meta = array() )

Constructor.

Contents

  • Description
    • Parameters
    • Source
  • Related
    • Uses
    • Used By
  • User Contributed Notes

Description #Description


Parameters #Parameters

$meta

(Optional) Data to wrap behind this function.

Default value: array()


Top ↑

Source #Source

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

	public function __construct( $meta = array() ) {
		$this->current_data = $meta;
		$this->apply_changes();
	}

Expand full source code Collapse full source code


Top ↑

Related #Related

Top ↑

Uses #Uses

Uses
Uses Description
includes/class-wc-meta-data.php: WC_Meta_Data::apply_changes()

Merge changes with data and clear.

Top ↑

Used By #Used By

Used By
Used By Description
includes/abstracts/abstract-wc-data.php: WC_Data::set_meta_data()

Set all meta data from array.

includes/abstracts/abstract-wc-data.php: WC_Data::add_meta_data()

Add meta data.

includes/abstracts/abstract-wc-data.php: WC_Data::read_meta_data()

Read Meta Data from the database. Ignore any internal properties.


Top ↑

User Contributed Notes #User Contributed Notes

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

Proudly powered by WordPress