Skip to content

Tag: how-to

Showing page 16 of 19

Indexing post types

Enterprise Search automatically indexes all public post types.

Activate Enterprise Search

To fully enable Enterprise Search, the feature must be code-enabled then an Elasticsearch (ES) index for a site's content is created using CLI commands.

Activate a plugin through code

Plugins must be installed by adding them to the /plugins directory of an application’s GitHub repository in order to be available for activation. Once installed, it is possible to activate the plugins in the WordPress Admin dashboard (WP Admin). However, it is recommend to code-activate plugins instead to gain greater control and consistency across all environments (e.g., production, non-production, and local development environments).

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.