Hooks

FormsSubmissionToPost

4 hooks fired by FormsSubmissionToPost: 4 filters and 0 actions across 4 call sites.

4 hooks fired by FormsSubmissionToPost: 4 filters and 0 actions across 4 call sites. 2 of the 4 call sites are described by a docblock, at the call or on the constant that names the hook; the rest are listed with their signature and call sites only. Paths are relative to the plugin directory.

auth_post_meta_{$key}

Filter · Dynamic name · 6 arguments · 1 call site

apply_filters( "auth_post_meta_{$key}", $allowed, $key, 0, $user, 'edit_post_meta', [] )

Fired from:

  • packages/FormsSubmissionToPost/Addon.php:1414

$subtypeFilter

Filter · Dynamic name · 6 arguments · 1 call site

apply_filters( $subtypeFilter, $allowed, $key, 0, $user, 'edit_post_meta', [] )

Fired from:

  • packages/FormsSubmissionToPost/Addon.php:1411

xpac-forms-after-settings-modal-content

Filter · 3 arguments · 1 call site

Content appended inside a settings panel's item modal.

applyFilters( 'xpac-forms-after-settings-modal-content', [], { value: options, onChange: onUpdate, }, `xpac-${ID}` )

Fired from:

  • assets/packages/forms-submission-to-post/Components/Modal.js:165

'xpac_form_upload_' . $block['blockName'] . '_parent_post_id'

Filter · Dynamic name · 1 argument · 1 call site

Forms' upload-parent filter, re-read here to validate a featured image.

This plugin does not own the hook — Forms fires it when it stores an upload, and the variable part is the uploading field's block name. It is read again here so a mapped attachment id can be checked against the parent Forms would have given it, which is what stops a visitor naming any attachment on the site and having it published as the new post's thumbnail.

A listener that changes the parent must therefore answer the same way in both places, or the image it stored will not validate here and the post gets no featured image.

apply_filters( 'xpac_form_upload_' . $block['blockName'] . '_parent_post_id', $submission->getFormId() )
  • $parentPostId (int) — Attachment parent. Defaults to the form's ID.

Fired from:

  • packages/FormsSubmissionToPost/Addon.php:1993

On this page