Skip to content

Actions and filters

Initializers: 2 hooks.

Every hook here has a description in the source.

0 actions2 filters

filter

davo_default_navigation_menu_items

Filters the default menu items seeded into the Main Navigation menu.

Parameters of davo_default_navigation_menu_items
ParameterTypeDescription
$itemsarray<int, array<string, mixed>>Ordered menu item tree.
add_filter
add_filter( 'davo_default_navigation_menu_items', 'my_filter_callback', 10, 1 );

/**
 * @param array<int, array<string, mixed>> $items
 */
function my_filter_callback( $items ) {
	// Change $items as needed, then return it.
	return $items;
}

src/initializers/installation.php:173

filter

davo_users_have_additional_content

Filters whether a user has content beyond core post types, like WordPress core's users_have_additional_content. Defaults to whether the user authors any post.

Parameters of davo_users_have_additional_content
ParameterTypeDescription
$has_contentboolWhether the user has content.
$user_idsint[]User IDs being checked.

Returns bool

add_filter
add_filter( 'davo_users_have_additional_content', 'my_filter_callback', 10, 2 );

/**
 * @param bool $has_content
 * @param int[] $user_ids
 */
function my_filter_callback( $has_content, $user_ids ) {
	// Change $has_content as needed, then return it.
	return $has_content;
}

src/initializers/users-initializer.php:139

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