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…
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…
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…
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…
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…
If you hook into the the_content
filter to modify a blog post’s content, you may notice that the hook gets executed more than one time. This can cause your page load time to increase. The code below is an example of how to ensure your the_content
filter function is called once and only once during…