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.

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
- Add the Edit Button block to the action page template.
- Set the Edit Page in Settings > Fundations > Pages if you have not already done so.
- Customise button text, style, and colors in the inspector.
Settings and options
| Option | Type | Default | Description |
|---|---|---|---|
| Button text | string | Edit Fundations | Button label |
| Button size | string | medium | small, medium, large, or text |
| Alignment | string | left | left, center, or right |
| Show icon | boolean | true | Display an edit icon |
| Border radius | number | 6 | Corner rounding |
| Is outline | boolean | false | Outline button style instead of filled |
| Border thickness | number | 2 | Outline border thickness |
| Border color | string | #2271b1 | Outline border color |
| Outline text color | string | #2271b1 | Outline button text color |
| Outline hover text color | string | #ffffff | Outline button hover text color |
| Full width | boolean | false | Stretch button to full container width |
| Button color | string | #2271b1 | Filled button background |
| Button text color | string | #ffffff | Filled button text |
| Button hover color | string | #135e96 | Filled button hover background |
| Icon color | string | — | Icon color; empty inherits text color |
| Text weight | string | 600 | Font weight (text style) |
| Underline height | number | 2 | Underline thickness (text style) |
| Text link hover color | string | #d32f4a | Hover 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.