Skip to content

WordPress

Use the Lightning Flow iFrame plugin to embed Salesforce Screen Flows on WordPress pages via shortcode.

Download: WordPress.org plugin directory · GitHub repository

  1. Install and activate the plugin from WordPress.org or zip wordpress/lightning-flow-iframe/ from the GitHub repo.
  2. Complete Salesforce setup and expose FlowIframeEmbed on a Site.
  3. Go to Settings → Lightning Flow iFrame and configure defaults:
    • Default iFrame URLhttps://your-site.force.com/site-prefix/apex/three_levers__FlowIframeEmbed (namespaced VF path; see Salesforce setup)
    • Default Flow Name — Flow API Developer Name (e.g. Check_In_Dispatch)
    • Default End URL — optional thank-you page (e.g. https://yoursite.com/thanks)
  4. Add to any page or post:
[Lightning-Flow-iFrame]

WordPress Settings → Lightning Flow iFrame: default iFrame URL, flow name, and end URL

SettingWhen to use
Default iFrame URLAvoid repeating the Salesforce Site URL on every page
Default Flow NameEnables embed mode for shortcodes without a flow attribute
Default End URLRedirect parent tab when flow finishes

Leave Default Flow Name blank on sites that still use legacy Visualforce pages without the flow parameter.

Shortcode attributes always override settings.

inputvars is not required. Add it only when the flow accepts URL inputs:

[Lightning-Flow-iFrame inputvars="recordId,source" extraqs="recordId=001xxx&source=homepage"]

Only parameters listed in inputvars are passed (from extraqs or the WordPress page query string).

AttributeDescriptionRequiredDefault
iframeurlURL of public FlowIframeEmbed VF pageYes*From settings
flowFlow API Developer NameYes*From settings
endurlParent redirect when flow finishesNoFrom settings
inputvarsComma-separated allowlist for flow inputsNonone
extraqsManual query params, e.g. recordId=001xxx&source=homepageNonone
heightInitial iframe height (e.g. "75px")No"50px"
easeEase height adjustment animationNo"false"
easespeedEase speed in secondsNo".2"
lazyApply loading="lazy" to iframeNo"true"

*Required on the shortcode or in Settings → Lightning Flow iFrame defaults.

If Default Flow Name is blank and the shortcode has no flow attribute, the plugin uses legacy mode (full parent query string forwarding, endurl lowercase). Existing pages continue to work without changes.

New WordPress sites should configure defaults and use embed mode with FlowIframeEmbed.

Complete Salesforce setup before embedding.

WordPress-specific issues: WordPress.org support forum