Dokan – A multi-vendor e-commerce app theme is coming soon…

Update: Dokan has been released “Dokan” – an upcoming WordPress app theme for building multi-seller e-commerce store, powered by WooCommerce. Me and my team are working on this for couple of months and it’s going to be released at end of this month or in first half of February. It’s using WooCommerce as it’s backend … Continue reading Dokan – A multi-vendor e-commerce app theme is coming soon…

Wildcard search using WP_User_Query()

You can use WP_User_Query() class to fetch users by various arguments. With it’s search parameter, you can search users by these columns ‘ID’, ‘login’, ‘user_nicename’, ‘user_email’, ‘user_url’. Although you’ve to specify which columns you want perform the search. [php]$user_query = new WP_User_Query( array( ‘search’ => ‘Tareq’ ) );[/php] When searching users with the search parameter, … Continue reading Wildcard search using WP_User_Query()

WooCommerce sold out badge on products listing

Someone asked me in my facebook page that how could he add “Sold Out” badge in WooCommerce product. Well, here’s how: [php] add_action( ‘woocommerce_before_shop_loop_item_title’, function() { global $product; if ( !$product->is_in_stock() ) { echo ‘<span class="onsale soldout">Sold Out</span>’; } }); [/php] Paste this snippet in your themes functions.php and voila! Change the color as you … Continue reading WooCommerce sold out badge on products listing

Blocking user registration by country level domain in WordPress

Spammers are everywhere and in weDevs, every single day a lots of spammers are registering. Among of them “.pl” domains are mostly used. Enough is enough, so why not block them? Thats why wrote a function that will check the users email address and will find the country level domain (only the last part of … Continue reading Blocking user registration by country level domain in WordPress