Automattic\WooCommerce\Admin\API
OnboardingProfile::get_collection_params()
Get the query params for collections.
Method of the class: OnboardingProfile{}
Hooks from the method
Return
Array
.
Usage
$OnboardingProfile = new OnboardingProfile(); $OnboardingProfile->get_collection_params();
OnboardingProfile::get_collection_params() OnboardingProfile::get collection params code WC 8.7.0
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 ); }