Skip to main content

benecaster_before_account_wall_name

Action Free

Fires immediately before the wall name field on the subscriber account page — its input and Save button. Output echoed here appears above the field.

Fires only when the field renders, wherever it renders: inside the Supporter Wall section for a member with a wall (“What name should appear on our supporter wall?”), or in a section of its own for a member without one (“What name should we use when we thank you?”). Any of benecaster_show_account_wall_name_field’s three signals renders it. It never fires for a subscriber who cannot see the field.

Parameters

Name Type Default Description
$user_id int — WordPress user ID of the logged-in subscriber viewing their own account page

Examples

Explain where the name appears

add_action( 'benecaster_before_account_wall_name', function ( int $user_id ): void {
    echo '<p class="wall-name-note">' . esc_html__( 'Leave it blank to stay anonymous on the wall.', 'my-theme' ) . '</p>';
} );

Affects

  • Subscriber Account Page

Need this built rather than just documented? See our services →