<?php /* Plugin Name: Aerotech Configuration Plugin Plugin URI: http://programmer.iz.rs Description: Changes the output from The Other Plugin using a bit of code Author: Milan Grujic Version:...
Woocommerec hide add to chart on category or product
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...
Change memory limit in .htaccess file
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',...