The items on the Woocommerce My Account page vary depending on the products handled and the site they are on.
For example, if you want to hide the ‘Dashboard’ and ‘Downloads’ items, you can achieve this by doing the following.
Write the following code in the ‘functions.php’ file.
// shoptab
add_filter ( 'woocommerce_account_menu_items', 'misha_remove_my_account_links' );
function misha_remove_my_account_links( $menu_links ){
//unset( $menu_links['edit-address'] ); // Addresses
unset( $menu_links['dashboard'] ); // Remove Dashboard
//unset( $menu_links['payment-methods'] ); // Remove Payment Methods
//unset( $menu_links['orders'] ); // Remove Orders
unset( $menu_links['downloads'] ); // Disable Downloads
//unset( $menu_links['edit-account'] ); // Remove Account details tab
//unset( $menu_links['customer-logout'] ); // Remove Logout link
return $menu_links;
}
Code Security Web Wordpress
How to hide information in php.ini.WordPress
Hiding php.ini information improves site security. You are encouraged to refer to this information to maintain your website. 1. Description in the ‘php.ini’ file.2. In “.htaccess” files. Description in the ‘php.ini’ file. display_errors = off In “.htaccess” files. <Files php.ini>...
Continue readingPlant Raise
The key points are sun, wind, water and soil! How to grow succulents.
Succulents are very easy to grow compared to other plants. There are four simple points. Maintain in a sunny location. Maintain in a well-ventilated area. Water when the soil is dry. Plant in well-drained soil. As long as the above...
Continue readingCode Speed Web Without Plugin
Without Plugin!How to LazyLoad Google Adsense to speed up display speed.
Loading Google Adsense significantly reduces page display speed. The following methods will improve the expectation of problem resolution and should be tried. 1. Remove Script tag in Google Adsense code.2. Install code for LazyLoad. Remove Script tag in Google Adsense...
Continue readingCode Web Without Plugin Wordpress
Without Plugin!Easy copy and paste. how to add a site name shortcode to WordPress.
It is very time-consuming to rewrite site names when producing multiple sites. As a way of preventing this from happening, it is recommended to set up a system to call the name of the site by a shortcode. Write the...
Continue readingCode Security Web Wordpress
How to prohibit access to wp-config.php.WordPress
Prohibiting access to wp-config.php improves site security. You are encouraged to refer to this information to maintain your website. Put the following code in the “.htaccess” file. <files wp-config.php> order allow,deny deny from all </files>
Continue readingPlant
Aztekium ritteri
1. Habitat2. Description3. Farming Habitat Usually grows on vertical limestone cliffs. It is endemic to two remote small areas in the Nuevo León region of north-eastern Mexico. It is endangered in its habitat due to illegal collection and natural erosion...
Continue readingPlant
Agave victoriae-reginae ‘Sasanoyuki’
1. Basic Information.1.1. Scientific name1.2. Family name1.3. Genus name1.4. Species name1.5. Country of origin1.6. Habitat1.7. Morphology1.8. Mature tree1.9. Cold hardy1.10. Heat tolerant1.11. Sunshine1.12. Flour color1.13. Flowering period Basic Information. Scientific name Agave victoria-regina Family name Asparagaceae Genus name Agave Species...
Continue readingPlant
What is a cactus. Origin and characteristics of ‘Cactos’ [1].
The word ‘Cactus’ derives from the Greek word ‘Kàktos’. The term was used by Theophrastus in his book HistoriaPlantarum to describe ‘unknown thorny plants’. The term ‘Cactus’ was subsequently adopted by the renowned botanist Linneo to define the American thorny...
Continue readingArrival Shop
WordPress PWA(Progressive Web App)Best Plugin!
The right PWA plugin for WordPress can benefit your site and your customers’ experience.This article therefore presents the best PWA plugins for WordPress. 1. 1.Best PWA Plugins For WordPress2. 2.Super Progressive Web Apps By SuperPWA3. 3.Progressive WordPress (PWA) By Nico...
Continue readingCode Web Wordpress
How to save rewriting links.WordPress
If you are building multiple WordPress sites, you face the problem of having to ‘rewrite URLs’ when duplicating them. The following code is recommended to solve this problem before it happens. Please describe it in the theme’s ‘functions.php’ file. /*...
Continue reading