Skip to content

Commit d0d3bd0

Browse files
committed
Add locale param to the lessons endpoint (filterable)
1 parent fc8a8ea commit d0d3bd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/class-lessons.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function get_remote_api_items() {
5858
[
5959
'site' => \get_site_url(),
6060
'license_key' => \progress_planner()->get_license_key(),
61+
'locale' => apply_filters( 'prpl_lesson_locale', \get_locale() ),
6162
],
6263
$url
6364
);

0 commit comments

Comments
 (0)