Promote your Service and Product online Contact us

+91 87 44 999667; +91 99 11 883996 info@3pixls.com, sales@3pixls.com

Showing prices without VAT based on roles

November 3rd, 2016 by

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( […]

Automatically create meta description from the_content

September 21st, 2016 by

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 […]

Generate New Idea

September 8th, 2016 by

Generate New Idea Faith in Creativity Pride our Work

Happy 70th Independence day 2016

August 15th, 2016 by

Today we come together, Be the cause for the unity, Make it Beautiful day – Happy 70th Independence day 2016

Customize ‘Edit My Profile’ URL in WordPress Admin Bar

August 11th, 2016 by

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 […]


Warning: Undefined variable $additional_loop in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34

Warning: Attempt to read property "max_num_pages" on null in /home/pixlscom/public_html/blog/wp-content/themes/3pixelsblog/index.php on line 34