filter
Filter the floating Help Beacon discovery payload.
Parameters of davo_help_beacon_payload Parameter Type Description $payload array Popular articles, quick links, search URL, and support CTA. $viewer_id int Current viewer ID.
add_filter Copyadd_filter ( 'davo_help_beacon_payload' , 'my_filter_callback' , 10 , 2 );
/**
* @param array $payload
* @param int $viewer_id
*/
function my_filter_callback ( $payload , $viewer_id ) {
// Change $payload as needed, then return it.
return $payload ;
}src/domains/home/repository.php:318, and 1 more place
filter
Filter the homepage discovery payload.
Parameters of davo_home_payload Parameter Type Description $result array Published content and destinations. $viewer_id int Current viewer.
add_filter Copyadd_filter ( 'davo_home_payload' , 'my_filter_callback' , 10 , 2 );
/**
* @param array $result
* @param int $viewer_id
*/
function my_filter_callback ( $result , $viewer_id ) {
// Change $result as needed, then return it.
return $result ;
}src/domains/home/repository.php:216
filter
Filter the public destinations offered on missing pages.
Parameters of davo_home_recovery_payload Parameter Type Description $payload array Search, support, and published recovery links.
add_filter Copyadd_filter ( 'davo_home_recovery_payload' , 'my_filter_callback' , 10 , 1 );
/**
* @param array $payload
*/
function my_filter_callback ( $payload ) {
// Change $payload as needed, then return it.
return $payload ;
}src/domains/home/repository.php:285