Skip to content

Tag: how-to

Showing page 17 of 19

Use WP-CLI search-replace

The WP-CLI search-replace command can be used to search and replace strings in a selection of database tables. This is useful for updating post content and options, especially when changing URLs for sites on a WordPress multisite.

Add a domain

Custom domains must be added to an environment's VIP Dashboard in order to launch a site or send emails from an environment with that domain.

Write custom WP-CLI commands

WP-CLI commands can be created and run using VIP-CLI on the VIP platform. The best practices outlined here are an extension of the developer documentation in the WP-CLI Handbook and the Commands Cookbook.

Purge by URL

Content cached by the page cache can be purged on demand in the VIP Dashboard, with VIP-CLI, or in a site's WordPress Admin tool bar.

/languages directory

The /languages directory is mapped to /wp-content/languages. /languages is found in the root of an application’s wpcomvip GitHub repository and is intended for *.po and *.mo language translation files.

Strip image metadata on upload

By default, image metadata is not stripped from uploaded images. The GET ?strip=all|info|color query parameter string can be added to images served by VIP’s File System in order to remove JPEG image Exif, IPTC, comment, and color data from the output image in the browser.

Analyze HTTP request logs with GoAccess

Analyzing HTTP request logs can provide crucial insight into how an application is performing and how an audience is interacting with content. GoAccess is an open source tool that can be used to visualize request log data to can gain deeper insights into an application.

Create good changesets

Changesets are the heart of any version control system, and making good changesets is vitally important to the maintainability of a codebase.

Elements of a good commit message

Commit messages are one of the most common ways developers communicate with each other, so it is important to clearly communicates any changes.