PluginProbe
Flexible Subscriptions / trunk
Flexible Subscriptions vtrunk
1.8.5 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.19 1.7.18 1.7.17 1.7.16 1.7.15 1.7.14 1.7.13 1.7.12 1.7.11 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.2.2 All 62 releases
flexible-subscriptions / src / Admin / Settings / AccountTab.php

AccountTab.php in Flexible Subscriptions trunk, at src/Admin/Settings/AccountTab.php

30 lines 766 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 declare(strict_types=1);
3
4 namespace WPDesk\FlexibleSubscriptions\Admin\Settings;
5
6 use WPDesk\FlexibleSubscriptions\Form\Fields\AccountEndpointFields;
7 use WPDesk\FlexibleSubscriptions\Form\Fields\Tab;
8
9 class AccountTab extends Tab {
10
11 public function __construct() {
12 parent::__construct( $this->fields() );
13 }
14
15 private function fields(): array {
16 return [
17 ( new AccountEndpointFields() )
18 ->set_name( 'account_endpoints' )
19 ->set_label( __( 'Account endpoints', 'flexible-subscriptions' ) )
20 ->set_description(
21 __(
22 'Endpoints are appended to your page URLs to handle specific actions on the accounts pages. They should be unique and can be left blank to disable the endpoint.
23 ',
24 'flexible-subscriptions'
25 )
26 ),
27 ];
28 }
29 }
30