This code snippet allows you to create an administrator then delete it after you’re done with your work on the website. It’s very useful when the client gives you only FTP or CPanel and you have many websites to work on.
The problem with a lot of “multipurpose” themes is that when they override the default behaviors of WordPress or one of its plugins, they forget to re-introduce the filters that were there before they did their thing.
The buying process on a WooCommerce store for most goes like this: The user spots a product He adds it to the cart He goes to the checkout page He pays for it What if we could get rid of the cart altogether and provide a more friendly user experience instead of this Walmart-ish approach?… Continue reading How to Optimize Your WooCommerce Store for Single Product/Item Checkout
The WP CLI never ceases to impress me. You can do lots of things with just a few lines of code. In this code snippet, I let the WP CLI create 15 products with random images from Lorem Picsum, prices are also random within the 1-1000 range.
Wondering why some of the string in the theme or plugin you just translated aren’t found in the .po file or have weird plural form? This happens a lot because many translators don’t use the right configurations. So besides the search path in Poedit, make sure you have the right configuration for plural forms and… Continue reading Arabic translation files for WordPress
Update Code on this post has been made into a plugin, the plugin is more complete and handles a wider range of locales. Are you having problems to get the Disqus Comment System WordPress plugin to work with your site language (Arabic, French…). Here is the code you are looking for:
The WordPress plugin Remove Fields main purpose is to help you get more comments to your blog by removing the website field from the comment form, and trust me, it works, the reason is that a lot of people think that the website field is mandatory, when they see it they will refrain from posting… Continue reading Remove Fields [WP Plugin]
This post is outdated as of WordPress 6.0. See the first comment. I got you there, I too didn’t know there were n and m dashes “–” and “—“. Anyways, the process of using one of these in my life was something like this:
Lappy, touchpad, plugin, WordPress, vlog… and many other words are not (yet) recognized by Firefox, each time you use any of them Firefox will underline them in red, it would be better not to be bothered by these lines every time you write a “common” word which is not listed in the dictionary. Add a… Continue reading Add or Remove a word from Firefox dictionary