WC_Data::get_hook_prefix()protectedWC 3.0.0

Prefix for action and filter hooks on data.

Method of the class: WC_Data{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_hook_prefix();

Changelog

Since 3.0.0 Introduced.

WC_Data::get_hook_prefix() code WC 8.7.0

protected function get_hook_prefix() {
	return 'woocommerce_' . $this->object_type . '_get_';
}