Change "register" to "subscribe" for consistency

This commit is contained in:
Alex P 2021-09-16 15:25:38 +03:00
parent a6b1b79e74
commit 8ea2d3daf6
2 changed files with 4 additions and 4 deletions

View file

@ -15,8 +15,8 @@ use WooCommerce\PayPalCommerce\Webhooks\Status\WebhooksStatusPage;
return array(
'wcgateway.settings.fields' => static function ( $container, array $fields ): array {
$status_page_fields = array(
'webhooks-list' => array(
'title' => __( 'Registered webhooks', 'woocommerce-paypal-payments' ),
'webhooks_list' => array(
'title' => __( 'Subscribed webhooks', 'woocommerce-paypal-payments' ),
'type' => 'ppcp-table',
'screens' => array(
State::STATE_PROGRESSIVE,

View file

@ -92,10 +92,10 @@ class WebhookRegistrar {
self::KEY,
$created->to_array()
);
$this->logger->info( 'Webhooks registered.' );
$this->logger->info( 'Webhooks subscribed.' );
return true;
} catch ( RuntimeException $error ) {
$this->logger->error( 'Failed to register webhooks: ' . $error->getMessage() );
$this->logger->error( 'Failed to subscribe webhooks: ' . $error->getMessage() );
return false;
}
}