Category: WordPress

  • Create a WordPress Administrator PrograManually (CPanel, FTP, SSH, etc)

    Create a WordPress Administrator PrograManually (CPanel, FTP, SSH, etc)

    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.

  • How to Force Avada to Use WooCommerce Thumbnail Function

    How to Force Avada to Use WooCommerce Thumbnail Function

    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.

  • How to Optimize Your WooCommerce Store for Single Product/Item Checkout

    How to Optimize Your WooCommerce Store for Single Product/Item Checkout

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

  • How to generate WooCommerce products with the WP CLI

    How to generate WooCommerce products with the WP CLI

    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.

  • How to Add JavaScript to Contact Form 7 events programmatically

    Contact Form 7 is probably the most used plugin considering that WordPress official stats rank it 2nd after Akismet which comes bundled with WordPress. I myself use it a lot, and I had the chance to extend it in different ways depending on my current client needs. The last challenge I had was to add code […]

  • Arabic translation files for WordPress

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

  • WordPress: Disqus Language

    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:

  • Remove Fields [WP Plugin]

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

  • WordPress and dashes (m-dash & n-dash)

    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:

  • Add or Remove a word from Firefox dictionary

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