Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public function add_submenu() { |
||
42 | global $wpi_subscriptions_page; |
||
43 | |||
44 | $wpi_subscriptions_page = add_submenu_page( |
||
45 | 'wpinv', |
||
46 | __( 'Subscriptions', 'invoicing' ), |
||
47 | __( 'Subscriptions', 'invoicing' ), |
||
48 | 'manage_options', |
||
49 | 'wpinv-subscriptions', |
||
50 | array( $this, 'subscriptions_page' ) |
||
51 | ); |
||
52 | } |
||
53 | |||
77 | new WPInv_Recurring_Admin(); |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.