WordPress at Your Fingertips
function is not described

WC_Query::wpseo_metakey() public WC 1.0

WP SEO meta key.

Hooked into wpseo_ hook already, so no need for function_exist.

{} It's a method of the class: WC_Query{}

No Hooks.

Return

String.

Usage

$WC_Query = new WC_Query();
$WC_Query->wpseo_metakey();

Code of WC_Query::wpseo_metakey() WC 5.6.0

public function wpseo_metakey() {
	return WPSEO_Meta::get_value( 'metakey', wc_get_page_id( 'shop' ) );
}