add_action('woocommerce_single_product_summary', 'remove_product_description_add_cart_button', 1 ); function remove_product_description_add_cart_button() { // function for deleting ... // Set HERE...
WordPress allow an user role to create a new user with a lower capabilities
/** * Helper function get getting roles that the user is allowed to create/edit/delete. * * @param WP_User $user * @return array */ function wpse_188863_get_allowed_roles( $user ) { $allowed =...
WordPress – Remove user role and restore default user roles
remove_role( 'subscriber' ); if ( !function_exists( 'populate_roles' ) ) { require_once( ABSPATH . 'wp-admin/includes/schema.php' ); } populate_roles();
Move WordPress media uploads to a subdomain
How to move media to a subdomain Create the subdomain on your host files.sitename.com for exampleDownload ALL the old media files from your WordPress /wp-content/uploads folder...
Add image to Woocommerce shipping method
/////////////////////////////////////////// //Add image to the shipping method checkout ////////////////////////////////////////// function add_fexdex_logo(){ ?> <script> var fedexEdit =...
Change Serbian рсд to RSD
Just put this code to the functions.php file // Change the RSD currency symbol /** * Custom currency and currency symbol */ add_filter( 'woocommerce_currencies', 'add_my_currency' ); function...
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...
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 user ID and Role to the body class in Dashboard
If you need to customize WordPress dashboard by editing it for specific use ID or based on the user role, you can easily add body class to the dashboard with this code, which you can put it in the...


