-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate llms-notifications-settings.php
- Loading branch information
1 parent
15d19a5
commit af4d0cd
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/** | ||
* Filter to customize settings associated with LifterLMS Basic Notifications. | ||
* | ||
* https://lifterlms.com/docs/lifterlms-filters/#llms_notifications_settings | ||
* | ||
* You can add this recipe to your site by creating a custom plugin | ||
* or using the Code Snippets plugin available for free in the WordPress repository. | ||
* Read this companion documentation for step-by-step directions on either method. | ||
* https://lifterlms.com/docs/adding-custom-code/ | ||
*/ | ||
function my_llms_notifications_settings( $settings ) { | ||
$settings['heartbeat_interval'] = 60000; | ||
return $settings; | ||
} | ||
add_filter( 'llms_notifications_settings', 'my_llms_notifications_settings', 10, 1 ); |