WC_Data::get_hook_prefix()protectedWC 3.0.0

Prefix for action and filter hooks on data.

{} It's a 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.

Code of WC_Data::get_hook_prefix() WC 6.8.2

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