Ajit Bohra
wpui-plugin-app-boilerplate

Quick Start Your Ideas With WPUI Plugin and App Boilerplate

A few months ago, we introduced WPUI – an open-source design pattern library that uses WordPress components as building blocks to create React-powered WordPress plugins or apps. With WPUI, you can spend less time on UI and more time developing your ideas. We use WPUI extensively to design modern UI for our internal and client projects. However, the process of setting up the project can be repetitive. To simplify this, we have created a boilerplate for both the plugin and a standalone app. We’ve configured the boilerplate setup using wp-scripts and wp-components to kickstart the project quickly. Plugin Boilerplate This…

Writing Custom WP-CLI Command

WordPress core comes with a command-line interface (CLI) called WP-CLI. This interface provides commands that allow developers to access and automate various aspects of WordPress from the command line. The benefits of the command line are that it can run and process on a server more efficiently, and can be scripted. However, there are cases where the core commands provided may not be sufficient, or developers may want to accomplish specific tasks. In such cases, WP-CLI enables developers to extend and write custom commands. We have used this feature extensively in various client projects, where bulk operations are required for…

reduce customer cancellations in WooCommerce orders

How to prevent customers from cancelling WooCommerce orders

If you’re running an eCommerce business, you know that managing customer orders is super important. One crucial step in the customer journey is order cancellation, which may vary depending on your business needs. You might even have specific conditions under which an order can be canceled. By default, WooCommerce allows customers to cancel an order if it’s in a pending payment or failed status. Also, pending orders are canceled based on store settings. However, if you’re looking to customize these default settings, WooCommerce has got you covered. In this article, we’ll explore various case scenarios and recommend different solutions based…

Launch wordpress.org Plugin or Theme in WordPress Playground

The WordPress ecosystem is constantly evolving and adding new tools to improve user and developer experience. We often need a quick WordPress setup to test something or showcase it. To help users with this, WordPress contributors have built a WordPress Playground. Leveraging the power of web assembly Playground allows the user to run WordPress right in the browser. One can visit https://playground.wordpress.net to spin an on-demand personal WordPress setup. One can visit the plugin or theme section and upload the zip file to install. A plugin or theme can be installed using the URL. For example, to spin a WordPress…

Gymie maintenance Release v1.0.2 / v1.0.3

In 2018 we opensourced “Gymie“, our small side project which started as small solution to the local gyms. This year we are focusing on our “Laravel” and “Gymie” offering. We have received a positive response from people using the application. All the feedback and suggestions gives us better clarity about the roadmap. Latest maintenance release(s) iron outs bugs and cleanup. Next, work is in progress for v1.1.2 to bring some enhancements, code refactoring & cleanup. Personally, we are not happy with current implementation and we have started working on v2.0 release to make core app stable. Detailed scope and features…

Github Actions To Release WordPress Plugin

Github is the place where we spend a good amount of time exploring some amazing opensource projects, contributing or pushing our own code. Development at GitHub is on fire post Microsoft acquisition. Lately, we have seen many new features and improvements being rolled out to the platform. Of all the new goodies “Actions” are coming to platform which is currently in beta. Actions are fun little bots that help you automate all the boring repetitive task. Currently we have various other ways to do that. But having something integrated within the platform would be fun. With action possiblities are endless…

Explore Gutenberg Components with WP Storybook

At lubus, we have been embracing Gutenberg and have been building things using various reusable components and packages. UI components come handy to provide consistent UX. To make discovering and referring all components quick and easy we have built this experimental storybook. We keep adding stories/cases as and when we discover them. Currently, a good amount of components have been added and we thought to share it with others. Once it shapes up well we would love to explore getting it into core. Things on our list: Add as many possible components & cases Capability to view and copy the…

WordPress Gutenberg Theme Support

With Gutenberg WordPress allow themes to enable support for styling aspect. Theme can define fontsizes, colors and several optional opt-in features. Theme Support plugin enables configuring some on the support feature quickly via UI interface. Following are the current available suport options via plugin. Manage fontsizes, diable custom user fontsize Manage color palette, disable custom color picker Block Editor (Gutenberg) width Enable responsive embeds Enable default block styles Dummynator is available for download on WordPress plugin repo – https://wordpress.org/plugins/theme-support Want to dive into the code and explore how it works? The code is open sourced on GitHub – https://github.com/lubusIN/wp-theme-support Stay…

Dummynator

Dummynator – Insert Blocks With Dummy Content To Gutenberg

Dummynator, a simple plugin that allows you to add paragraph & list block with random content to Gutenberg. Recently working with Gutenberg we had to add random content to few pages & our laziness lead us to this plugin.  It was the perfect opportunity for us to use the Gutenberg plugin & sidebar API. Currently, the plugin provides few options & content type but yes we plan to add more options soon. Checkout Dummynator in action below. Want to play around with “Dummynator”, head over to our Gutenberg playground – https://gutenberg.lubus.in/ Dummynator is available for download on WordPress plugin repo – https://wordpress.org/plugins/dummynator Want to dive…

Block Background – Extending WordPress Gutenberg Blocks

Last week we released “Color Palette Block” which enables users to create and share color palette quickly from WordPress Gutenberg editor. Post that we have been experimenting with Gutenberg extensibility API. Gutenberg development team is working hard on each release and adding more power to the upcoming editor.  Last few releases added extensibility API to extend Gutenberg / blocks via plugins. Currently, we are working with few clients to explore migrating existing website to Gutenberg. During brainstorming one thing that discussed was the option to have gradients & images as a block background.  We have been playing around with extensibility API & this was the perfect opportunity for…