Wp menu item update (WP-CLI)

Uit De Vliegende Brigade
Versie door Jeroen Strompf (overleg | bijdragen) op 27 aug 2022 om 18:49 (Nieuwe pagina aangemaakt met '<pre> $ wp help menu item update NAME wp menu item update DESCRIPTION Updates a menu item. SYNOPSIS wp menu item update <db-id> [--title=<title>] [--lin...')
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Naar navigatie springen Naar zoeken springen
$ wp help menu item update

NAME

  wp menu item update

DESCRIPTION

  Updates a menu item.

SYNOPSIS

  wp menu item update <db-id> [--title=<title>] [--link=<link>] [--description=<description>]
  [--attr-title=<attr-title>] [--target=<target>] [--classes=<classes>] [--position=<position>]
  [--parent-id=<parent-id>]

OPTIONS

  <db-id>
    Database ID for the menu item.

  [--title=<title>]
    Set a custom title for the menu item.

  [--link=<link>]
    Set a custom url for the menu item.

  [--description=<description>]
    Set a custom description for the menu item.

  [--attr-title=<attr-title>]
    Set a custom title attribute for the menu item.

  [--target=<target>]
    Set a custom link target for the menu item.

  [--classes=<classes>]
    Set a custom link classes for the menu item.

  [--position=<position>]
    Specify the position of this menu item.

  [--parent-id=<parent-id>]
    Make this menu item a child of another menu item.

EXAMPLES

    $ wp menu item update 45 --title=WordPress --link='http://wordpress.org' --target=_blank --position=2
    Success: Menu item updated.