Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsRestController::get_schema_properties_for_onboarding_step_action
Get the schema properties for an onboarding step action.
Метод класса: WooPaymentsRestController{}
Хуков нет.
Возвращает
Массив[]. The schema properties for an onboarding step action.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_schema_properties_for_onboarding_step_action(): array;
Код WooPaymentsRestController::get_schema_properties_for_onboarding_step_action() WooPaymentsRestController::get schema properties for onboarding step action WC 10.8.1
private function get_schema_properties_for_onboarding_step_action(): array {
return array(
'type' => array(
'type' => 'string',
'description' => esc_html__( 'The action type to determine how to use the URL.', 'woocommerce' ),
'enum' => array( WooPaymentsService::ACTION_TYPE_REST, WooPaymentsService::ACTION_TYPE_REDIRECT ),
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
'href' => array(
'type' => 'string',
'description' => esc_html__( 'The URL to use for the action.', 'woocommerce' ),
'context' => array( 'view', 'edit' ),
'readonly' => true,
),
);
}