Skip to content
Recued
Menu
← Back to recipes

Create a WordPress post draft

by recued-core v1

Approval-gated WordPress draft creation. It searches for existing posts with the same slug for context, then creates exactly one post through recued-core.wordpress with bounded editorial fields and a default draft status. It never publishes without explicit status input, deletes content, uploads media, mutates users, changes settings, installs plugins, or calls arbitrary WordPress endpoints.

How it works 13 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (13 steps)
title_text trim
Trim whitespace from setting title
content_html trim
Trim whitespace from setting content
excerpt_text trim
Trim whitespace from setting excerpt
slug_text trim
Trim whitespace from setting slug
publish_date trim
Trim whitespace from setting date
has_title compare
Check if title text has data
has_content compare
Check if content html has data
has_slug compare
Check if slug text has data
has_required all
Check if all conditions are true
existing ?
skip: step.has_slug not_equal true
created_post ?
skip: step.has_required not_equal true
skipped compare
Check if has required does not equal true
card to_summary
Format results as a summary card
Settings 12 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

date setting =
slug setting =
tags setting =
title setting =
author setting = 0
status setting = draft
content setting = <p>Draft the post content here.</p>
excerpt setting =
wordpress setting =
categories setting =
comment status setting = open
featured media setting = 0

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Where it runs

Device + server Runs on your device (browser) or your server.

Permissions it requires

Read your Wordpress connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

wordpress wordpresscmspostdraftpublishingapprovalcontentpack:wordpress

Details

13 steps 12 configurable settings recipe_id: create-wordpress-post-draft