Wp yoast (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Het lijkt erop wp yoast maar één ding kan: Content indexeren. Jammer.

$ wp help yoast

NAME

  wp yoast

DESCRIPTION

  Command to generate indexables for all posts and terms.

SYNOPSIS

  wp yoast <command>

SUBCOMMANDS

  index      Indexes all your content to ensure the best performance.

wp yoast index

$ wp help yoast index

NAME

  wp yoast index

DESCRIPTION

  Indexes all your content to ensure the best performance.

SYNOPSIS

  wp yoast index [--network] [--reindex] [--skip-confirmation]

OPTIONS

  [--network]
    Performs the indexation on all sites within the network.

  [--reindex]
    Removes all existing indexables and then reindexes them.

  [--skip-confirmation]
    Skips the confirmations (for automated systems).

Aanroep is simpel:

wp yoast index

En het commando was gelijk klaar.