Automattic\WooCommerce\Admin\API

OnboardingProfile::get_collection_params()publicWC 1.0

Get the query params for collections.

{} Это метод класса: OnboardingProfile{}

Возвращает

Массив.

Использование

$OnboardingProfile = new OnboardingProfile();
$OnboardingProfile->get_collection_params();

Код OnboardingProfile::get_collection_params() WC 6.9.1

public function get_collection_params() {
	// Unset properties used for item schema.
	$params = self::get_profile_properties();
	foreach ( $params as $key => $param ) {
		unset( $params[ $key ]['context'] );
		unset( $params[ $key ]['readonly'] );
	}

	$params['context'] = $this->get_context_param( array( 'default' => 'view' ) );

	return apply_filters( 'woocommerce_rest_onboarding_profile_collection_params', $params );
}