Add this code to the end of the file php_value memory_limit 256M
Copy WordPress to the subfolder of domain
Just copy copy WordPres like you are transferring wp. Edit the .htaccess file like this # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically...
Show user ID in the WordPress dashboard
Put this code to the functions.php /* * Adding the column */ function rd_user_id_column( $columns ) { $columns['user_id'] = 'ID'; return $columns; } add_filter('manage_users_columns',...
Style menu on Woocommerce my account page
/** * My Account NAVIGATION */ /* Change WC Acct Page Column Widths */ /* Style WC Account Endpoint Links */ li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads...
Update Packages that will not upgrade Linux
sudo apt-get update sudo apt-get dist-upgrade
Remove software in Linux Mint using the terminal.
Standard way So, the most common and standard way is with this command: sudo apt-get remove package_name Completely remove (advanced) However, if you want to completely remove the program you can...
Force ssl via .hatccess file
To force https:// over http:// add this code on .htaccess file RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Or this code <IfModule...
Add css to WordPress Dashboard
add_action('admin_head', 'my_custom_notification'); function my_custom_notification() { echo '<style> /* Your CSS here */ </style>'; }
Scan linux filesystem for errors
sudo fsck -y /dev/sda3
Linux Users share Local Directory
If you need that users on linux machine share directories you can accomplish that by creating a directory and assign to it privileges First make shared directory sudo mkdir /home/Shared\ Directory...