Filters public discovery items for custom-table content types (e.g. changelog, video).
The name is built at runtime: davo_ai_discovery_public_items_ followed by a suffix.
Parameters of davo_ai_discovery_public_items_…
Parameter
Type
Description
$items
array<int, array<string, mixed>>
Existing items.
$limit
int
Maximum items.
add_filter
// $suffix is the part of the name that varies.add_filter( 'davo_ai_discovery_public_items_' . $suffix, 'my_filter_callback', 10, 2 );
/**
* @param array<int, array<string, mixed>> $items
* @param int $limit
*/functionmy_filter_callback( $items, $limit ) {
// Change $items as needed, then return it.return$items;
}
This filter is documented in plugin/src/domains/auth/services/security.php */
Passed to callbacks: $ip
add_filter
add_filter( 'davo_client_ip', 'my_filter_callback', 10, 1 );
functionmy_filter_callback( $arg1 ) {
// Change $arg1 as needed, then return it.return$arg1;
}
src/domains/ai-discovery/helpers.php:374, and 5 more places
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.