WordPress

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…

UI Tool To Generate WordPress Playground link and embed

No denying the fact that we love WordPress playground a lot at LUBUS and have been incorporating it into our day-to-day work. Recently, we released a browser extension to enable launching themes and plugins on WordPress.org directly in Playground. Customizing https://playground.wordpress.net/ is quite simple and easy via appending query parameters. For example, to spin Playground with the Gutenberg plugin one needs to simply pass the plugin slug to Playground https://playground.wordpress.net/ ?plugin=gutenberg. Apart from this Playground supports several other https://wordpress.github.io/wordpress-playground/query-api/. Remembering or crafting URLs with this query parameter may not be intuitive for non-tech folks. To make this more user-friendly, we…

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…

Composer EDD Plugin

Composer EDD Plugin – Install WordPress Pro Offerings Powered By EDD Software Licensing

Composer is a dependency manager for PHP and supports managing various WordPress dependencies. One can manage complete WordPress sites via composer installing core, themes, and plugins. For more info on using WordPress with Composer https://composer.rarst.net/ WordPress core can be installed via composer using https://packagist.org/packages/johnpbloch/wordpress. All the free themes and plugins are available for installation via wpackagist. Some premium plugins like “Advanced Custom Fields” supports installation via the composer. Commercial offerings keys and sensitive data can be protected by using “Private Composer Installer”. Not all plugin houses support composer based installation but still, the composer is flexible to source packages from…

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…

Color Palatte Block For WordPress Gutenberg

We are gearing up for upcoming changes to WordPress and as a part of it we have been playing around with Gutenberg.  We are in process of planning migration of some of the old client website & our own properties to Gutenberg. Currently, we are using Gutenberg on our own internal portal for quickly documenting  & sharing project specific details. In all this, we have identified our needs for some custom blocks of which some are under development. Of them all, one block we wished was to quickly create and share color palettes right from the Gutenberg. The initial version…