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.
Ready to get started with WordPress VIP? Contact us
Showing page 17 of 19
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.
Content cached by the page cache can be selectively purged on demand in the VIP Dashboard, with VIP-CLI, or in a site's WordPress Admin Toolbar or dashboard.
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.
By default, image metadata is not stripped from images uploaded to the VIP File System. The strip=all|info|color query parameter can be added to images in order to remove JPEG image Exif, IPTC, comment, and color data from the image when it is output in a browser.
Analyzing shipped log files can provide crucial insight into an application’s quality of performance and the ways users are interacting with site content.
The “Powered by WordPress VIP” link is typically added to the footer of a site by using the vip_powered_wpcom() helper function supplied by VIP MU plugins.
Query Monitor is a WordPress plugin that provides a developer tools panel for WordPress. It enables debugging of database queries, PHP errors, warnings and notices, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API calls, and more.
All WordPress sites are automatically provisioned with Jetpack and Jetpack Akismet Anti-Spam (Akismet) and a Jetpack Complete plan. Versions of Jetpack and Akismet are managed by the WPVIP Platform via VIP MU plugins.
In order for content creators and developers to interact with an application hosted on the VIP WordPress Platform, user accounts may need to be created for them. User access management (i.e., adding, removing, and editing user accounts) for most accounts are under the customer’s governance.
The default WordPress roles and capabilities may be insufficient for the needs of some sites. A collection of helper functions are available in vip-go-mu-plugins for creating new roles or modifying existing roles. VIP recommends using these helper functions rather than the traditional methods to ensure that the code works as expected on the WordPress VIP platform.