November 3rd, 2016 by admin
Showing prices without VAT based on roles Function that will check for user role and turn off VAT/tax for that role [php] function wc_diff_rate_for_user() { // check for the user role if ( is_user_logged_in() && current_user_can( ‘wholesale_customer’ ) ) { // set the customer object to have no VAT WC()->customer->is_vat_exempt = true; } } add_action( […]
September 21st, 2016 by admin
Adding this snippet to the functions.php of your wordpress theme will automatically create a meta description from your wordpress post striping out all shortcodes and tags. Make sure you have in the header.php of your wordpress theme or this snippet will not work. [php] function create_meta_desc() { global $post; if (!is_single()) { return; } $meta […]
September 8th, 2016 by admin
Generate New Idea Faith in Creativity Pride our Work
August 15th, 2016 by admin
Today we come together, Be the cause for the unity, Make it Beautiful day – Happy 70th Independence day 2016
August 11th, 2016 by admin
A lot of sites have custom profile pages (not the general one you find in the WordPress admin > Users > Your Profile/Edit My Profile). Profile After building an awesome edit profile page – your users log in, see the WordPress admin bar, click “Edit My Profile” and they end up at the WordPress general […]