Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #56922, comment 16


Ignore:
Timestamp:
09/15/2023 08:53:12 PM (17 months ago)
Author:
antonvlasenko
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56922, comment 16

    v1 v2  
    32325. Record the ID value.
    33336. Install and activate the https://github.com/WP-API/Basic-Auth plugin to simplify the authentication of REST requests.
    34 7. 🐞 Make a REST request to the template parts endpoint. Replace `admin:password` with your admin credentials and `<template_part_id>` with the ID value from step 5.
     347. Make a REST request to the template parts endpoint. Replace `admin:password` with your admin credentials and `<template_part_id>` with the ID value from step 5.
    3535{{{
    3636#!bash
    3737curl http://path.to.your.wordpress.server/wp-json/wp/v2/template-parts/<template_part_id>/revisions -u "admin:password"
    3838}}}
    39 8. The following response will be received:
     398. 🐞 The following response will be received:
    4040{{{
    4141#!js