filter
Filter the client IP the changelog rate limiter keys on.
Parameters of davo_changelog_client_ip Parameter Type Description $ip string Address taken from REMOTE_ADDR.
add_filter Copyadd_filter ( 'davo_changelog_client_ip' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $ip
*/
function my_filter_callback ( $ip ) {
// Change $ip as needed, then return it.
return $ip ;
}src/domains/changelog/helpers.php:333
filter
This filter is documented in services/languages.php. */
Passed to callbacks: ''
add_filter Copyadd_filter ( 'davo_changelog_default_language' , 'my_filter_callback' , 10 , 1 );
function my_filter_callback ( $arg1 ) {
// Change $arg1 as needed, then return it.
return $arg1 ;
}src/domains/changelog/seo.php:332, and 1 more place
action
Fires after a changelog entry is created.
Parameters of davo_changelog_entry_created Parameter Type Description $entry_id int The new entry's ID. $entry object The entry row.
add_action Copyadd_action ( 'davo_changelog_entry_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $entry_id
* @param object $entry
*/
function my_action_callback ( $entry_id , $entry ) {
// Your code here.
}src/domains/changelog/services/entries.php:122
action
Fires after a changelog entry is deleted.
Parameters of davo_changelog_entry_deleted Parameter Type Description $entry_id int The deleted entry's ID. $entry object The entry row as it was before deletion.
add_action Copyadd_action ( 'davo_changelog_entry_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $entry_id
* @param object $entry
*/
function my_action_callback ( $entry_id , $entry ) {
// Your code here.
}src/domains/changelog/services/entries.php:539
action
Fires when a changelog entry is published, either created as published or published later.
Parameters of davo_changelog_entry_published Parameter Type Description $entry_id int Entry ID. $entry object The entry row.
add_action Copyadd_action ( 'davo_changelog_entry_published' , 'my_action_callback' , 10 , 2 );
/**
* @param int $entry_id
* @param object $entry
*/
function my_action_callback ( $entry_id , $entry ) {
// Your code here.
}src/domains/changelog/services/entries.php:131, and 1 more place
action
Fires after a translation of a changelog entry is created.
Parameters of davo_changelog_entry_translation_created Parameter Type Description $entry_id string The new entry's ID. $entry object The new entry row. $source_id string The entry it translates.
add_action Copyadd_action ( 'davo_changelog_entry_translation_created' , 'my_action_callback' , 10 , 3 );
/**
* @param string $entry_id
* @param object $entry
* @param string $source_id
*/
function my_action_callback ( $entry_id , $entry , $source_id ) {
// Your code here.
}src/domains/changelog/services/entries.php:448
action
Fires after a changelog entry is updated.
Parameters of davo_changelog_entry_updated Parameter Type Description $entry_id int Entry ID. $entry object The updated entry row.
add_action Copyadd_action ( 'davo_changelog_entry_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $entry_id
* @param object $entry
*/
function my_action_callback ( $entry_id , $entry ) {
// Your code here.
}src/domains/changelog/services/entries.php:296, and 1 more place
action
Fires after a guest confirms their changelog subscription.
Parameters of davo_changelog_guest_subscribed Parameter Type Description $subscriber_id string Stable subscriber identifier.
add_action Copyadd_action ( 'davo_changelog_guest_subscribed' , 'my_action_callback' , 10 , 1 );
/**
* @param string $subscriber_id
*/
function my_action_callback ( $subscriber_id ) {
// Your code here.
}src/domains/changelog/services/subscribers.php:371
filter
This filter is documented in services/languages.php. */
Passed to callbacks: ''
add_filter Copyadd_filter ( 'davo_changelog_language' , 'my_filter_callback' , 10 , 1 );
function my_filter_callback ( $arg1 ) {
// Change $arg1 as needed, then return it.
return $arg1 ;
}src/domains/changelog/helpers.php:299, and 3 more places
filter
Filters the languages changelog entries and releases can be written in.
Parameters of davo_changelog_languages Parameter Type Description $languages array<string, string> Language code => display name.
add_filter Copyadd_filter ( 'davo_changelog_languages' , 'my_filter_callback' , 10 , 1 );
/**
* @param array<string, string> $languages
*/
function my_filter_callback ( $languages ) {
// Change $languages as needed, then return it.
return $languages ;
}src/domains/changelog/services/languages.php:38
filter
Filter the capability required to manage the Changelog domain.
Parameters of davo_changelog_manage_capability Parameter Type Description $capability string Capability slug. Default 'davo_manage_options'.
add_filter Copyadd_filter ( 'davo_changelog_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/changelog/helpers.php:177
action
Fires after a changelog release is created.
Parameters of davo_changelog_release_created Parameter Type Description $release_id int The new release's ID. $release object The release row.
add_action Copyadd_action ( 'davo_changelog_release_created' , 'my_action_callback' , 10 , 2 );
/**
* @param int $release_id
* @param object $release
*/
function my_action_callback ( $release_id , $release ) {
// Your code here.
}src/domains/changelog/services/releases.php:86
action
Fires after a changelog release is deleted.
Parameters of davo_changelog_release_deleted Parameter Type Description $release_id int The deleted release's ID. $release object The release row as it was before deletion.
add_action Copyadd_action ( 'davo_changelog_release_deleted' , 'my_action_callback' , 10 , 2 );
/**
* @param int $release_id
* @param object $release
*/
function my_action_callback ( $release_id , $release ) {
// Your code here.
}src/domains/changelog/services/releases.php:265
action
Fires after a translation of a release is created.
Parameters of davo_changelog_release_translation_created Parameter Type Description $release_id string Id of the new release. $release object The new release row. $source_id string The release it translates.
add_action Copyadd_action ( 'davo_changelog_release_translation_created' , 'my_action_callback' , 10 , 3 );
/**
* @param string $release_id
* @param object $release
* @param string $source_id
*/
function my_action_callback ( $release_id , $release , $source_id ) {
// Your code here.
}src/domains/changelog/services/releases.php:378
action
Fires after a changelog release is updated.
Parameters of davo_changelog_release_updated Parameter Type Description $release_id int Release ID. $release object The updated release row.
add_action Copyadd_action ( 'davo_changelog_release_updated' , 'my_action_callback' , 10 , 2 );
/**
* @param int $release_id
* @param object $release
*/
function my_action_callback ( $release_id , $release ) {
// Your code here.
}src/domains/changelog/services/releases.php:167
action
Fires after the release order has been saved and verified.
Parameters of davo_changelog_releases_reordered Parameter Type Description $final string[] Every release id in its new order.
add_action Copyadd_action ( 'davo_changelog_releases_reordered' , 'my_action_callback' , 10 , 1 );
/**
* @param string[] $final
*/
function my_action_callback ( $final ) {
// Your code here.
}src/domains/changelog/services/releases.php:476
filter
Filters the language a changelog sitemap lists.
Parameters of davo_changelog_sitemap_language Parameter Type Description $language string Language code, or an empty string to list every language.
add_filter Copyadd_filter ( 'davo_changelog_sitemap_language' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $language
*/
function my_filter_callback ( $language ) {
// Change $language as needed, then return it.
return $language ;
}src/domains/changelog/sitemap-provider.php:191
action
Fires after an admin removes a changelog subscriber.
Parameters of davo_changelog_subscriber_deleted Parameter Type Description $subscriber_id string Stable subscriber identifier.
add_action Copyadd_action ( 'davo_changelog_subscriber_deleted' , 'my_action_callback' , 10 , 1 );
/**
* @param string $subscriber_id
*/
function my_action_callback ( $subscriber_id ) {
// Your code here.
}src/domains/changelog/services/subscribers.php:680
action
Fires after the changelog type list changes (create, update, delete, or reorder).
Parameters of davo_changelog_types_changed Parameter Type Description $types array<int, array<string, mixed>> Full, current type list.
add_action Copyadd_action ( 'davo_changelog_types_changed' , 'my_action_callback' , 10 , 1 );
/**
* @param array<int, array<string, mixed>> $types
*/
function my_action_callback ( $types ) {
// Your code here.
}src/domains/changelog/services/types.php:361
action
Fires after a subscriber opts out of changelog updates.
Parameters of davo_changelog_unsubscribed Parameter Type Description $subscriber_id string Stable subscriber identifier.
add_action Copyadd_action ( 'davo_changelog_unsubscribed' , 'my_action_callback' , 10 , 1 );
/**
* @param string $subscriber_id
*/
function my_action_callback ( $subscriber_id ) {
// Your code here.
}src/domains/changelog/services/subscribers.php:949
filter
Filters whether an untranslated item is shown in the default language rather than hidden.
Parameters of davo_changelog_untranslated_fallback Parameter Type Description $enabled bool Whether to fall back.
add_filter Copyadd_filter ( 'davo_changelog_untranslated_fallback' , 'my_filter_callback' , 10 , 1 );
/**
* @param bool $enabled
*/
function my_filter_callback ( $enabled ) {
// Change $enabled as needed, then return it.
return $enabled ;
}src/domains/changelog/services/languages.php:121
action
This action is documented in Changelog_Subscribers_Service::subscribe_user(). */
Passed to callbacks: $user_id
add_action Copyadd_action ( 'davo_changelog_user_subscribed' , 'my_action_callback' , 10 , 1 );
function my_action_callback ( $arg1 ) {
// Your code here.
}src/domains/changelog/services/subscribers.php:111, and 1 more place
filter
This filter is documented in the Language domain (Language_Content::language_locale()). */
Passed to callbacks: ''$code
add_filter Copyadd_filter ( 'davo_language_locale' , 'my_filter_callback' , 10 , 2 );
function my_filter_callback ( $arg1 , $arg2 ) {
// Change $arg1 as needed, then return it.
return $arg1 ;
}src/domains/changelog/seo.php:258, and 1 more place
filter
Filters a changelog row's URL so it points at a language.
Parameters of davo_language_row_url Parameter Type Description $url string URL built from the site home. $lang string Language to put it under.
add_filter Copyadd_filter ( 'davo_language_row_url' , 'my_filter_callback' , 10 , 2 );
/**
* @param string $url
* @param string $lang
*/
function my_filter_callback ( $url , $lang ) {
// Change $url as needed, then return it.
return $url ;
}src/domains/changelog/helpers.php:311
filter
Filters the canonical URL of a page whose content is not translated.
Parameters of davo_language_untranslated_content_url Parameter Type Description $url string URL of the page in the current language.
add_filter Copyadd_filter ( 'davo_language_untranslated_content_url' , 'my_filter_callback' , 10 , 1 );
/**
* @param string $url
*/
function my_filter_callback ( $url ) {
// Change $url as needed, then return it.
return $url ;
}src/domains/changelog/seo.php:279