filter
The source has no description for this hook. It is called from Video_Sections_Service::translate_sections().
Passed to callbacks: $section[ $field ]self::STRINGS_CONTEXT"section.{$id}.{$field}"
add_filter Copyadd_filter ( 'davo_language_translate_string' , 'my_filter_callback' , 10 , 3 );
function my_filter_callback ( $arg1 , $arg2 , $arg3 ) {
// Change $arg1 as needed, then return it.
return $arg1 ;
}src/domains/videos/services/sections.php:102, and 8 more places
action
Fires when video providers should register themselves.
Parameters of davo_register_video_providers Parameter Type Description $registry Video_Provider_Registry Shared provider registry instance.
add_action Copyadd_action ( 'davo_register_video_providers' , 'my_action_callback' , 10 , 1 );
/**
* @param Video_Provider_Registry $registry
*/
function my_action_callback ( $registry ) {
// Your code here.
}src/domains/videos/initializer.php:370
action
Request regeneration of a public video's search document.
Parameters of davo_search_reindex_object Parameter Type Description $object_type string Registered Search source key. $id int Video identity.
add_action Copyadd_action ( 'davo_search_reindex_object' , 'my_action_callback' , 10 , 2 );
/**
* @param string $object_type
* @param int $id
*/
function my_action_callback ( $object_type , $id ) {
// Your code here.
}src/domains/videos/search-integration.php:82, and 9 more places
action
Fires after a deleted attachment was removed from the videos using it.
Parameters of davo_video_attachment_deleted Parameter Type Description $attachment_id int Deleted attachment ID. $thumbnail_videos int[] Videos whose custom thumbnail was cleared. $source_videos int[] Videos whose playable source was this file.
add_action Copyadd_action ( 'davo_video_attachment_deleted' , 'my_action_callback' , 10 , 3 );
/**
* @param int $attachment_id
* @param int[] $thumbnail_videos
* @param int[] $source_videos
*/
function my_action_callback ( $attachment_id , $thumbnail_videos , $source_videos ) {
// Your code here.
}src/domains/videos/repository.php:1085
filter
Filter how many queued availability checks one cron run performs.
Parameters of davo_video_availability_batch_size Parameter Type Description $batch_size int Pairs to check per run.
add_filter Copyadd_filter ( 'davo_video_availability_batch_size' , 'my_filter_callback' , 10 , 1 );
/**
* @param int $batch_size
*/
function my_filter_callback ( $batch_size ) {
// Change $batch_size as needed, then return it.
return $batch_size ;
}src/domains/videos/services/video-providers/registry.php:292
action
Fires after a video is created.
Parameters of davo_video_created Parameter Type Description $id int New video ID. $row array<string, mixed> Inserted row data.
add_action Copyadd_action ( 'davo_video_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $id
* @param array<string, mixed> $row
*/
function my_action_callback ( $id , $row ) {
// Your code here.
}src/domains/videos/repository.php:451
action
Fires after a video is deleted.
Parameters of davo_video_deleted Parameter Type Description $video_id int The deleted video's ID. $video array<string, mixed> The video as it was before deletion.
add_action Copyadd_action ( 'davo_video_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $video_id
* @param array<string, mixed> $video
*/
function my_action_callback ( $video_id , $video ) {
// Your code here.
}src/domains/videos/repository.php:643
action
Fires after a video is duplicated.
Parameters of davo_video_duplicated Parameter Type Description $video_id int The new video's ID. $source array<string, mixed> The video that was copied.
add_action Copyadd_action ( 'davo_video_duplicated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $video_id
* @param array<string, mixed> $source
*/
function my_action_callback ( $video_id , $source ) {
// Your code here.
}src/domains/videos/repository.php:707
action
Fires after a video is added to a user's favorites.
Parameters of davo_video_favorited Parameter Type Description $user_id int User who favorited the video. $video_id int Video ID.
add_action Copyadd_action ( 'davo_video_favorited' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param int $video_id
*/
function my_action_callback ( $user_id , $video_id ) {
// Your code here.
}src/domains/videos/favorites-repository.php:97
filter
Filter the maximum number of favorite video IDs read per user.
Parameters of davo_video_favorites_max Parameter Type Description $limit int Maximum IDs. $user_id int User ID.
add_filter Copyadd_filter ( 'davo_video_favorites_max' , 'my_filter_callback' , 10 , 2 );
/**
* @param int $limit
* @param int $user_id
*/
function my_filter_callback ( $limit , $user_id ) {
// Change $limit as needed, then return it.
return $limit ;
}src/domains/videos/favorites-repository.php:55
filter
Filters the capability required to manage videos. Defaults to manage_options.
Parameters of davo_video_manage_capability Parameter Type Description $capability string Capability name.
Returns string
add_filter Copyadd_filter ( 'davo_video_manage_capability' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $capability
*/
function my_filter_callback ( $capability ) {
// Change $capability as needed, then return it.
return $capability ;
}src/domains/videos/routes.php:925, and 1 more place
action
Fires after a video provider registers itself.
Parameters of davo_video_provider_registered Parameter Type Description $slug string Provider slug. $provider Video_Provider_Interface Provider instance.
add_action Copyadd_action ( 'davo_video_provider_registered' , 'my_action_callback' , 10 , 2 );
/**
* @param string $slug
* @param Video_Provider_Interface $provider
*/
function my_action_callback ( $slug , $provider ) {
// Your code here.
}src/domains/videos/services/video-providers/registry.php:72
filter
Filter the list of disabled video provider slugs. Runs after the Options-backed list, so an integration can add to (or override) it without needing the admin UI.
Parameters of davo_video_providers_disabled Parameter Type Description $disabled array Provider slugs currently disabled.
add_filter Copyadd_filter ( 'davo_video_providers_disabled' , 'my_filter_callback' , 10 , 1 );
/**
* @param array $disabled
*/
function my_filter_callback ( $disabled ) {
// Change $disabled as needed, then return it.
return $disabled ;
}src/domains/videos/services/video-providers/registry.php:167
action
Fires after videos are reordered.
Parameters of davo_video_reordered Parameter Type Description $rows array<int, array<string, mixed>> The reordered rows, keyed by video ID.
add_action Copyadd_action ( 'davo_video_reordered' , 'my_action_callback' , 10 , 1 );
/**
* @param array<int, array<string, mixed>> $rows
*/
function my_action_callback ( $rows ) {
// Your code here.
}src/domains/videos/repository.php:833
action
Fires after a video section is created.
Parameters of davo_video_section_created Parameter Type Description $section array<string, mixed> The new section as returned by the API.
add_action Copyadd_action ( 'davo_video_section_created' , 'my_action_callback' , 10 , 1 );
/**
* @param array<string, mixed> $section
*/
function my_action_callback ( $section ) {
// Your code here.
}src/domains/videos/services/sections.php:265
action
Fires after a custom video type is created.
Parameters of davo_video_type_created Parameter Type Description $slug string The new type's slug. $label string The new type's label.
add_action Copyadd_action ( 'davo_video_type_created' , 'my_action_callback' , 10 , 2 );
/**
* @param string $slug
* @param string $label
*/
function my_action_callback ( $slug , $label ) {
// Your code here.
}src/domains/videos/services/types.php:177
filter
Filters the registered video types. Custom types created in the admin are merged in afterwards.
Parameters of davo_video_types Parameter Type Description $types array<string, array{label: string}> Type slug => definition. Defaults to the built-in types.
Returns array<string, array{label: string}>
add_filter Copyadd_filter ( 'davo_video_types' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<string, array{label: string}> $types
*/
function my_filter_callback ( $types ) {
// Change $types as needed, then return it.
return $types ;
}src/domains/videos/services/types.php:61
action
Fires after a video is removed from a user's favorites.
Parameters of davo_video_unfavorited Parameter Type Description $user_id int User who removed the favorite. $video_id int Video ID.
add_action Copyadd_action ( 'davo_video_unfavorited' , 'my_action_callback' , 10 , 2 );
/**
* @param int $user_id
* @param int $video_id
*/
function my_action_callback ( $user_id , $video_id ) {
// Your code here.
}src/domains/videos/favorites-repository.php:137
action
Fires after a video is updated.
Parameters of davo_video_updated Parameter Type Description $id int Video ID. $update array<string, mixed> Updated columns.
add_action Copyadd_action ( 'davo_video_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $id
* @param array<string, mixed> $update
*/
function my_action_callback ( $id , $update ) {
// Your code here.
}src/domains/videos/repository.php:612
filter
Filter the raw visitor identity used to throttle view counts, before it is hashed.
Parameters of davo_video_view_fingerprint Parameter Type Description $raw string Identity string for the current visitor.
add_filter Copyadd_filter ( 'davo_video_view_fingerprint' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $raw
*/
function my_filter_callback ( $raw ) {
// Change $raw as needed, then return it.
return $raw ;
}src/domains/videos/helpers.php:296
filter
Filter the per-visitor, per-video view throttle window.
Parameters of davo_video_view_throttle_seconds Parameter Type Description $window int Seconds before the same visitor can add another view. $video_id int Video ID.
add_filter Copyadd_filter ( 'davo_video_view_throttle_seconds' , 'my_filter_callback' , 10 , 2 );
/**
* @param int $window
* @param int $video_id
*/
function my_filter_callback ( $window , $video_id ) {
// Change $window as needed, then return it.
return $window ;
}src/domains/videos/repository.php:1004
action
Fires after a video view is recorded. Deliberately lightweight — NOT written to the Activity Log directly (per the domain's own "don't record every view as an Activity event" decision); an integration that genuinely wants per-view Activity entries can hook this and opt in itself. Not fired for throttled repeats.
Parameters of davo_video_viewed Parameter Type Description $video_id int Video ID.
add_action Copyadd_action ( 'davo_video_viewed' , 'my_action_callback' , 10 , 1 );
/**
* @param int $video_id
*/
function my_action_callback ( $video_id ) {
// Your code here.
}src/domains/videos/repository.php:979
action
Fires after a deleted user's videos were reassigned.
Parameters of davo_videos_author_reassigned Parameter Type Description $user_id int Deleted user ID. $new_author int New author ID, or 0 for none. $count int Number of videos reassigned.
add_action Copyadd_action ( 'davo_videos_author_reassigned' , 'my_action_callback' , 10 , 3 );
/**
* @param int $user_id
* @param int $new_author
* @param int $count
*/
function my_action_callback ( $user_id , $new_author , $count ) {
// Your code here.
}src/domains/videos/repository.php:1054