diff --git a/display-a-customer-s-full-name-to-my-account-page-in-woocommerce.code-snippets.php b/display-a-customer-s-full-name-to-my-account-page-in-woocommerce.code-snippets.php new file mode 100644 index 0000000..a5b62b6 --- /dev/null +++ b/display-a-customer-s-full-name-to-my-account-page-in-woocommerce.code-snippets.php @@ -0,0 +1,22 @@ +Welcome, ' . esc_html($first_name) . ' ' . esc_html($last_name) . '!
'; + } +} + +// Hook the function to WooCommerce My Account page +add_action('woocommerce_account_dashboard', 'display_customer_full_name'); diff --git a/remove-live-or-coming-soon-notice-from-the-admin-bar-in-woocommerce.code-snippets.json b/remove-live-or-coming-soon-notice-from-the-admin-bar-in-woocommerce.code-snippets.json new file mode 100644 index 0000000..b6c6ca4 --- /dev/null +++ b/remove-live-or-coming-soon-notice-from-the-admin-bar-in-woocommerce.code-snippets.json @@ -0,0 +1,25 @@ +{ + "generator": "Code Snippets v3.6.5.1", + "date_created": "2024-09-23 19:34", + "snippets": [ + { + "id": 70, + "name": "Remove live or coming soon notice from the admin bar in WooCommerce", + "desc": "https://gist.github.com/ChrisCree/daaa98c016d4402050e1430bf68d1ea9
", + "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}", + "tags": [ + "disable", + "remove", + "admin", + "bar", + "live", + "notice", + "wordpress" + ], + "scope": "admin", + "active": true, + "modified": "2024-09-23 19:34:19", + "revision": "3" + } + ] +} \ No newline at end of file