Skip to content

Actions and filters

Home: 3 hooks.

Every hook here has a description in the source.

0 actions3 filters

filter

davo_help_beacon_payload

Filter the floating Help Beacon discovery payload.

Parameters of davo_help_beacon_payload
ParameterTypeDescription
$payloadarrayPopular articles, quick links, search URL, and support CTA.
$viewer_idintCurrent viewer ID.
add_filter
add_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

davo_home_payload

Filter the homepage discovery payload.

Parameters of davo_home_payload
ParameterTypeDescription
$resultarrayPublished content and destinations.
$viewer_idintCurrent viewer.
add_filter
add_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

davo_home_recovery_payload

Filter the public destinations offered on missing pages.

Parameters of davo_home_recovery_payload
ParameterTypeDescription
$payloadarraySearch, support, and published recovery links.
add_filter
add_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

Note. Generated from the plugin source. Descriptions and parameters are the ones written in the code. The starter code uses the parameter names from those comments, or generic names where there are none, so check them against your use.

See it on your own site.

Davo is a WordPress theme and plugin by Exorex.

  • Runs on your own WordPress
  • Guided setup wizard
  • AI is off until you switch it on
  • Read the licence on the marketplace first