Skip to content

Commit bfd5a2a

Browse files
authored
Remove live or coming soon notice from the admin bar in WooCommerce Add
1 parent 83312b5 commit bfd5a2a

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"generator": "Code Snippets v3.6.5.1",
3+
"date_created": "2024-09-23 19:34",
4+
"snippets": [
5+
{
6+
"id": 70,
7+
"name": "Remove live or coming soon notice from the admin bar in WooCommerce",
8+
"desc": "<p>https://gist.github.com/ChrisCree/daaa98c016d4402050e1430bf68d1ea9</p>",
9+
"code": "add_action( 'admin_bar_menu', 'wc_remove_woocommerce_site_visibility_badge', 999 );\nfunction wc_remove_woocommerce_site_visibility_badge( $wp_admin_bar ) {\n $wp_admin_bar->remove_node( 'woocommerce-site-visibility-badge' );\n}",
10+
"tags": [
11+
"disable",
12+
"remove",
13+
"admin",
14+
"bar",
15+
"live",
16+
"notice",
17+
"wordpress"
18+
],
19+
"scope": "admin",
20+
"active": true,
21+
"modified": "2024-09-23 19:34:19",
22+
"revision": "3"
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)