File tree Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Expand file tree Collapse file tree 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 15
15
.monei-settings-header-welcome p {
16
16
font-size : 16px ;
17
17
}
18
- /* Hide the Monei tab in the main row of WooCommerce settings */
19
18
.wc-settings-sub-nav a [href *= "tab=monei_settings" ] {
20
19
display : none !important ;
21
20
}
22
- /* Also hide it in the "horizontal" tabs if WooCommerce uses them */
23
21
.nav-tab-wrapper a .nav-tab [href *= "tab=monei_settings" ] {
24
22
display : none !important ;
25
23
}
Original file line number Diff line number Diff line change @@ -102,21 +102,17 @@ public function enqueue_admin_scripts( $hook ) {
102
102
103
103
$ screen = get_current_screen ();
104
104
105
- // Ensure we're on the WooCommerce settings page
106
- if ( $ screen ->id !== 'woocommerce_page_wc-settings ' ) {
107
- return ;
108
- }
105
+ // Ensure we're on the WooCommerce settings page
106
+ if ($ screen ->id !== 'woocommerce_page_wc-settings ' ) {
107
+ return ;
108
+ }
109
109
110
- // Check if our settings tab is active
111
- //phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
112
- if ( isset ( $ _GET ['tab ' ] ) && $ _GET ['tab ' ] === $ this ->id ) {
113
- $ plugin_url = plugin_dir_url ( dirname ( __DIR__ ) );
114
- wp_enqueue_style (
115
- 'monei-admin-css ' ,
116
- $ plugin_url . 'public/css/monei-admin.css ' ,
117
- array (),
118
- '1.0.0 '
119
- );
120
- }
110
+ $ plugin_url = plugin_dir_url (dirname (__DIR__ ));
111
+ wp_enqueue_style (
112
+ 'monei-admin-css ' ,
113
+ $ plugin_url . 'public/css/monei-admin.css ' ,
114
+ array (),
115
+ '1.0.0 '
116
+ );
121
117
}
122
118
}
You can’t perform that action at this time.
0 commit comments