lidconcil
Forum Replies Created
-
Forum: Plugins
In reply to: [Sensei LMS - Online Courses, Quizzes, & Learning] Customize report CSV fileAny suggestions?
Forum: Plugins
In reply to: [Sensei LMS - Online Courses, Quizzes, & Learning] Customize report CSV fileThank you once again. I have managed to add a column and populate it with data in the “Reports” view. I do still have a problem with exporting the data, as it seems i cannot get the user related to each of the Report table items. Is there a way to get the user related to each report table item by using another filter?
My thought right now is that i would need to get all report table items so that i could extract just the user ID from each item. Is this possible?
Current code:
function add_column($columns) { $columns['company'] = "Företag"; apply_filters('sensei_analysis_overview_column_data', $columns); return $columns; } function add_column_data($columns) { $user = get_user_by('login', $columns['title']); $company = $user->foretag; $columns['company'] = $company; return $columns; } add_filter('sensei_analysis_overview_users_columns', 'add_column'); add_filter('sensei_analysis_overview_column_data', 'add_column_data');Forum: Plugins
In reply to: [Sensei LMS - Online Courses, Quizzes, & Learning] Customize report CSV fileThank you! Is there a specific hook i should use when writing the code? I can’t seems to find a hook in the developers documentation which has to do with the report specifically.
Forum: Plugins
In reply to: [Sensei LMS - Online Courses, Quizzes, & Learning] TranslationThank you!
The translation which you linked seems fine and the majority of the text is translated, even the text i was referring to in my original post.
I’m not sure if the plugin loads translations from JS, how would i find out? Should i place a Json file in a specific folder so wordpress can find it? How does it work?