Deploy your plugin to the WordPress.org SVN plugin repository from your GitHub repository

If you have (or want to have) a plugin in the WordPress.org repository but want to use GitHub for your plugin development, here are the steps you can to take to develop entirely in the GitHub environment and then deploy your code to the WordPress plugin repository without maintaining two different code bases. This tutorial…

Use WP CLI to Bulk Delete Thousands of WooCommerce Products

I ended up with over 30,000 products in my WooCommerce Trash. I really didn’t want to click the [Empty Trash] button dozens of times to delete as many products as possible before the process timed out. I decided to try the WordPress Command Line Interface (aka WP CLI) for this task. At first I tried…

A collection of free repeatable SVG background patterns

If you need a repeatable SVG background pattern to spruce up your site’s background or callout a box, check out Hero Patterns. Hero Patterns provides over 80 free SVG background patterns and the CSS code you need to add them to your site. Additionally, they have provided a color picker for the foreground and background…

Convert your raw SQL statements to a Laravel Query Builder query

If you have some legacy SQL or some raw test SQL code that you want converted into a Laravel’s Query Builder statement, check out Orator. Orator can convert raw SQL into a Laravel Query Builder statement. For example, Orator will convert this SQL query… SELECT * FROM users; … into this Query Builder statement: DB::select(`*`) ->from(`users`) ->get(); I…

Properly display line breaks from a <textarea> using Blade

If you have a <textarea name="content"> field in your form and you use {{ $post->content }} in your Blade template to display the $post->content field, you’ll notice that none of the line breaks are retained when the field is rendered on the page. For example, text entered into a <textarea> like this: The plants…