Automattic\WooCommerce\Admin\API
OnboardingProfile::get_collection_params()
Get the query params for collections.
Method of the class: OnboardingProfile{}
Hooks from the method
Returns
Array
.
Usage
$OnboardingProfile = new OnboardingProfile(); $OnboardingProfile->get_collection_params();
OnboardingProfile::get_collection_params() OnboardingProfile::get collection params code WC 9.8.5
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' ) ); /** * Filters the Onboarding Profile REST API collection parameters. * * @since 6.5.0 * @param array $params Collection parameters. */ return apply_filters( 'woocommerce_rest_onboarding_profile_collection_params', $params ); }