Contents
On this page

Frontend Submission - Plugixa Recipe

[plugixa_recipe_form] lets your visitors submit their own recipes directly from the frontend. Submitted recipes land in the admin with status = pending (configurable) for moderation.

Pro feature. The submission form, with My recipes and member edits, is part of Plugixa Recipe Pro since version 1.4.0. On a site that runs the free plugin, the data stays in your database and comes back as it was when Pro is active. See Free vs Pro.

The form needs the Recipe Submissions app (Apps > Recipe Submissions). While the app is off, or on a site that runs the free plugin, the shortcode prints nothing for visitors. Whoever may switch apps on sees a short note in its place, with a link to Apps.

The shortcode

[plugixa_recipe_form]
[plugixa_recipe_form style="modal"]
Attribute Default Description
style inline inline shows the form in the page; modal opens it in a pop-up

Login, the status of new recipes and the success message are set under Settings > Submission form; the moderation email and the upload size under Settings > Notifications & uploads. See Configuring the form.

What the form looks like

The frontend submission form headed Share Your Recipe, with tabs for Basic, Details, Tags & Diet, Ingredients, Instructions, Nutrition, Extras and Custom Fields; the Basic tab shows required Recipe Title and Description fields, an Excerpt and Author Name, and drag-and-drop upload areas for the recipe image and a gallery, accepting JPG, PNG or WebP up to 5MB

The form is split into tabs: Basic, Details, Tags & Diet, Ingredients, Instructions, Nutrition, Extras and, in Pro, Custom Fields. Visitors move through them with Back and Next, and send the recipe with Submit Recipe.

Choosing the fields

Since version 1.4.1 you choose which fields the form shows and which a visitor must fill in, under Settings > Submission form > Form fields. Each field is Required, Optional or Hidden. The form, its own checks in the browser and the server all follow the same list: a visitor cannot send the recipe with a required field empty, and whatever a request sends for a hidden field is ignored. A tab whose fields are all hidden is left out of the form.

Field Tab Default Can be
Recipe Title Basic Required Always required
Description Basic Required Required, Optional, Hidden
Excerpt Basic Optional Required, Optional, Hidden
Author Name Basic Optional Required, Optional, Hidden
Recipe Image Basic Required Required, Optional, Hidden
Gallery Images Basic Optional Optional, Hidden
Categories Details Required Required, Optional, Hidden
Cuisine Details Optional Required, Optional, Hidden
Course Details Optional Required, Optional, Hidden
Difficulty Details Required Required, Optional, Hidden
Cost Details Optional Required, Optional, Hidden
Season Details Optional Optional, Hidden
Servings Details Required Required, Optional, Hidden
Prep Time Details Required Required, Optional, Hidden
Cook Time Details Required Required, Optional, Hidden
Rest Time Details Optional Required, Optional, Hidden
Dietary Information Tags & Diet Optional Optional, Hidden
Tags Tags & Diet Optional Required, Optional, Hidden
Equipment Tags & Diet Optional Required, Optional, Hidden
Ingredients Ingredients Required Always required
Instructions Instructions Required Always required
Nutrition Nutrition Optional Optional, Hidden
Video URL Extras Optional Required, Optional, Hidden
Notes Extras Optional Required, Optional, Hidden
Tips Extras Optional Required, Optional, Hidden
Source Extras Optional Required, Optional, Hidden

The defaults are how the form behaved before 1.4.1, and Reset to defaults puts every field back to them. Recipe Title, Ingredients and Instructions are always required: a recipe cannot exist without them. Gallery Images, Season, Dietary Information and Nutrition can be optional or hidden, but not required.

  • The recipe editor keeps its own rules. Some fields are still needed by the admin recipe editor before it saves a recipe. If you make one of them optional or hidden on the form, a moderator fills it in before saving the submitted recipe. The settings screen lists which ones.
  • Nothing is guessed. An optional difficulty or servings left empty is stored empty.
  • Member edits keep hidden fields. When a member edits a recipe they sent, the fields that are hidden keep what a moderator entered.
  • The author is filled in. A signed-in member finds their display name already in Author Name.

Ingredients and steps

Since version 1.2.0, the form’s lists work like the admin recipe editor:

The Ingredients tab of the submission form, with a draggable row of Qty, Unit, Ingredient name and Notes fields and Add Ingredient, Add group heading and Paste a list buttons

  • Reorder: drag a row by its handle, or use the arrows.
  • Group: Add group heading inserts a heading such as “For the sauce”.
  • Paste a list: paste a whole ingredient list or method, one item per line. A line ending with a colon becomes a heading.
  • Units are suggested from your own units list.
  • Each step can have a timer and a photo.

The form keeps a draft in the visitor’s browser, so a visitor who closes the tab by mistake finds their recipe still there.

Photos and upload limits

The recipe image and gallery accept JPG, PNG or WebP. The form states the size limit your server really applies: the Max Upload Size setting, capped by your PHP upload limit. A photo that is not an image, or is over the limit, is refused with the reason, instead of the recipe being stored without it.

Configuring the form

Go to Settings > Submission form:

The Submission form tab of the Plugixa Recipe settings: the form shortcode, Inline or Modal style, Require users to be logged in, Submission Status set to Pending Review, Let members edit their submitted recipes and the Success Message, then the Form fields table, where each field of each tab is Required, Optional or Hidden and Recipe Title, Ingredients and Instructions are always required, and the captcha switch

Setting What it does
Require users to be logged in Guests see a login prompt instead of the form
Form fields Which fields the form shows and which a visitor must fill in: see Choosing the fields
Submission Status The status a new recipe gets, usually Pending Review. A signed-in member who may publish recipes is published straight away: see Who is published straight away
Let members edit their submitted recipes The page that holds the form. A logged-in member then gets an Edit link on My recipes for each recipe they sent; an edit of a published recipe goes back to review
Success Message What a visitor sees after sending a recipe
Confirmation page Since 1.4.2: the page a visitor is sent to after sending a new recipe. See After a recipe is sent
Email the submitter when their recipe arrives Since 1.4.2: a confirmation email to the person who sent the recipe
Enable captcha on recipe submissions Adds Cloudflare Turnstile to the form (keys under Settings > Spam protection)

The moderation email and the largest photo a visitor may upload are under Settings > Notifications & uploads, which is part of the free plugin because reviews use them too:

The Notifications and uploads section of the settings, with a switch to email when something arrives for moderation and a Max upload size field set to 5 MB

Setting What it does
Email me when something arrives for moderation Emails the Notification recipients (or the site admin email) when a recipe arrives
Max upload size (MB) The largest photo a visitor can send

After a recipe is sent

Since 1.4.2, three settings under Settings > Submission form decide what happens once a new recipe is stored.

The confirmation part of Settings > Submission form: the Confirmation page set to Thank you, the switch Email the submitter when their recipe arrives, and the Email subject and Email message with the placeholders recipe_title, author_name, site_name and site_url

Confirmation page. Pick a published page, and a visitor who sends a new recipe goes there instead of staying on the form. A member who edits a recipe they sent stays on the form. Leave it empty to keep the success message on the form, as before.

A thank-you panel. Put [plugixa_recipe_confirmation] on that page for a ready-made panel: it shows your Success Message and the steps the recipe goes through. The panel is the same for every visitor, so the page can be cached.

[plugixa_recipe_confirmation]
[plugixa_recipe_confirmation title="Thanks for cooking with us" message="We read every recipe."]
Attribute Default Description
title Recipe received The heading of the panel
message Your Success Message The text under the heading

The thank-you panel of the plugixa_recipe_confirmation shortcode: a green check, Recipe received, the success message, three steps Submitted, In review and Published, and a Back to the home page button

Confirmation email. Switch on Email the submitter when their recipe arrives, then write the Email subject and Email message. Both can use {recipe_title}, {author_name}, {site_name} and {site_url}. A signed-in member is emailed at their account address. For visitors without an account, set the Email field to Optional or Required under Form fields: it is Hidden by default. The address is used for this one email and is not stored, not even in the draft the form keeps in the browser.

When a member edits a recipe they sent, your moderation email now says Recipe revised instead of announcing a new submission.

Moderation

Submitted recipes appear in the recipe list with status pending. Filter by status to see only submissions, open one in the editor, then publish it or leave it unpublished.

Publishing a recipe needs the WordPress publish capability (Authors and above by default). A logged-in visitor can follow their submissions on the My recipes tab of their account page.

Who is published straight away

Since 1.4.3, a signed-in member who may publish recipes skips the review, while Submission Status stays Pending Review for everyone else. That is a WordPress Author or above, or, with Roles & permissions, a member whose permission role holds Publish recipes and take them down.

  • The member is told Thank you! Your recipe is now published. They are not sent to the confirmation page and get no “we will review it” email.
  • Your notification email says Recipe published instead of announcing a submission to review.
  • Their edit of a recipe that is already published stays live.

Since 1.5.0 the line under the form’s Share Your Recipe heading says what will happen: “It goes live on the site as soon as you submit it” for such a member, or when Submission Status is Published, and “We’ll review it and add it to our collection” otherwise. Visitors who are not signed in see the line that matches the setting, so the page can still be cached.

Spam protection

  • Honeypot field: a hidden input that bots fill in and people never see.
  • Cloudflare Turnstile (optional): enable it in the settings and enter your own site and secret keys.
  • Hourly limit: a cap on submissions per IP address per hour. A form refused for a typing mistake does not count against it.

Email notifications

With notifications on, the recipients you list receive an email for each new submission, with the recipe’s title and author. To send something else as well, hook plugixa_recipe_frontend_submission_saved and send your own mail from there.

Accessibility

The form uses semantic HTML with proper labels, ARIA attributes, and a focus-visible outline for keyboard users. Error messages are announced via aria-live="polite".

Quick Links

Share