Skip to main content

benecaster_guest_manager_affiliate_disclosure

Filter Premium guest-manager

Filters the line Some of these links are affiliate links. under a guest’s Publications, on their guest page and in a [benecaster_guest publications="true"] card. Applied only when at least one publication drawn is an affiliate link with a link. Return '' to show no line; anything that is not a string shows none.

Parameters

Name Type Default Description
$text string — The disclosure line, translated
$guest_id int — The guest whose publications are drawn

Returns: string

Example

add_filter( 'benecaster_guest_manager_affiliate_disclosure', static function ( string $text, int $guest_id ): string {
    return __( 'We may earn a commission from links marked as affiliate links.', 'my-theme' );
}, 10, 2 );

Notes

Worked out after benecaster_guest_manager_guest_page_data, from the publications that filter leaves, so it always matches what is drawn. Walkthrough: Restyle a guest's publications, or change or remove the affiliate line.

Affects

  • Guest page
  • [benecaster_guest]

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