Skip to main content

benecaster_before_account_profile

Action Free

Fires before the PROFILE section — name, email address and the change-password block — at the very top of the benecaster_account dashboard, above the profile picture and every subscription card.

The signature is $user_id only, NOT ( $show_id, $user_id ) like every other benecaster_before_account_* action. PROFILE renders once, outside the per-subscription loop, because a name, an address and a password belong to the person rather than to any one subscription — so there is no show in scope to pass. A callback copied from a sibling hook and registered with accepted_args = 2 receives null for its second argument.

Parameters

Name Type Default Description
$user_id int — WordPress user ID of the logged-in subscriber

Notes

Every other benecaster_before_account_* / benecaster_after_account_* action in this family takes ( $show_id, $user_id ). This one and its after counterpart do not — do not copy a sibling's registration with two accepted args.

Affects

  • Subscriber Account Page

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