benecaster_privacy_policy_sections
Filters the array of suggested privacy-policy sections Benecaster contributes on Settings → Privacy → Policy Guide via wp_add_privacy_policy_content(). Fires on admin_init, immediately before Privacy\PrivacyPolicyContent combines the sections into one HTML blob and passes it to wp_add_privacy_policy_content( 'Benecaster', $html ).
Each built-in entry is gated on the feature it describes actually being active on the install — download logging, Listener Support donations, built-in membership, follower signup, email logging — so an add-on callback should apply the same discipline: check its own real setting before appending a section, and never emit one unconditionally. A callback may also remove or replace a built-in entry (filter $sections by heading) — useful for a membership add-on that wants different wording for its own subscribers.
If the filtered array is empty (or every entry’s content is blank), wp_add_privacy_policy_content() is never called at all — there is no way to force an empty call.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$sections |
array |
— | The sections Benecaster has determined are active on this install. |
Returns:
array
Need this built rather than just documented? See our services →