DOCS

Edit Button

FREE block. Displays a link to the frontend edit page, visible only to the action’s creator or users with the edit_others_posts capability.

Edit button example

Why use this

Fundraiser creators need a way to update their action’s description, goal, images, and other details without accessing the WordPress admin. The Edit Button provides that link.

What it does

The block checks whether the current logged-in user is the action’s creator (_get_fund_creator_id meta or post_author) or has administrator-level editing capability. If neither matches, the block renders nothing. If the Edit Page is not configured in settings, the block renders an admin-only notice instead of a link.

The link points to the configured edit page with a ?edit_fund={post_id} parameter appended. The edit page itself should contain the Profile Settings block or the edit form block.

This block does not support Query Loop context.

How to use it

  1. Add the Edit Button block to the action page template.
  2. Set the Edit Page in Settings > Fundations > Pages if you have not already done so.
  3. Customise button text, style, and colors in the inspector.

Settings and options

OptionTypeDefaultDescription
Button textstringEdit FundationsButton label
Button sizestringmediumsmall, medium, large, or text
Alignmentstringleftleft, center, or right
Show iconbooleantrueDisplay an edit icon
Border radiusnumber6Corner rounding
Is outlinebooleanfalseOutline button style instead of filled
Border thicknessnumber2Outline border thickness
Border colorstring#2271b1Outline border color
Outline text colorstring#2271b1Outline button text color
Outline hover text colorstring#ffffffOutline button hover text color
Full widthbooleanfalseStretch button to full container width
Button colorstring#2271b1Filled button background
Button text colorstring#ffffffFilled button text
Button hover colorstring#135e96Filled button hover background
Icon colorstringIcon color; empty inherits text color
Text weightstring600Font weight (text style)
Underline heightnumber2Underline thickness (text style)
Text link hover colorstring#d32f4aHover color (text style)

What you can and cannot do

  • The button is completely invisible to logged-out visitors and to logged-in users who are not the action creator.
  • If the edit page is not configured, only admins see a notice. Creators see nothing.
  • The block does not support Query Loop context.

Troubleshooting

Button does not appear for the creator: Confirm the creator’s user ID matches _get_fund_creator_id on the action. If the action was created by a guest and claimed, the claim process should update this meta.

Button appears but clicking it shows a 404: The Edit Page ID is set incorrectly in Settings > Fundations > Pages. Verify the page exists and its ID is saved.