Automattic\WooCommerce\Admin\API
OnboardingProfile::get_collection_params()
Get the query params for collections.
Метод класса: OnboardingProfile{}
Хуки из метода
Возвращает
Массив
.
Использование
$OnboardingProfile = new OnboardingProfile(); $OnboardingProfile->get_collection_params();
Код OnboardingProfile::get_collection_params() OnboardingProfile::get collection params WC 9.7.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' ) ); /** * 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 ); }