soenarto
Forum Replies Created
-
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Sitemap lp_lesson, lp_quiz, lp_questionthank you for your attention
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] redirection at checkout ERRORIm sorry, how you showing the “Featured Review” in this page (https://testaddon.thimpress.com/courses/course-test/)?
Sorry if this out of topic
- This reply was modified 8 months, 1 week ago by soenarto.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] redirection at checkout ERRORI thank you for not ignoring my problem.
I have found the source of the problem, namely in the custom function that I created previously.
Previously I used this code:
add_action( ‘admin_init’, ‘my_admin_init_function’ );Using “admin_init” causes a lot of conflicts.
Then I tried replacing with this code:
add_action( ‘admin_enqueue_scripts’, ‘my_admin_init_function’ );It turns out this is cleaner and doesn’t interfere with each other.
I don’t really understand what kind of boundaries you want. Coincidentally a few weeks ago this became my interest.
Maybe you can use the “user role editor” plugin. With the plugin, you can create new roles and create restrictions for those roles
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Redirect Lessons URLMaybe you can give a little idea about this. Perhaps with your description I can experiment further
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] How to use has_category?Thanks, I finished it yesterday. If anyone else wants to do the same, I’d love to share a snippet of the code I used.
// Get the current course. $course = LP_Global::course(); // Check if the course has the category "online-college". if ($course && has_term('online-college', 'course_category', $course->id)) { // If the course belongs to the "online-college" category, remove specific elements. // Example: Remove the course description. remove_action('learn-press/content-course-description', 'learn_press_course_description', 10); // You can remove other elements similarly. } else { // If the course does not belong to the "online-college" category, restore the original settings. add_action('learn-press/content-course-description', 'learn_press_course_description', 10); // You can re-hook other actions similarly to restore the original settings. }
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] How to use has_category?I want to apply to a single course page, but only to a specific category
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] remove or hide the “Withdrawals” sub menuokay thanks, this works great
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] remove or hide the “Withdrawals” sub menuOn the admin page. This is visible to all instructors
Sorry if there is something wrong.I just wanted to express my excitement for LearnPress.
I’m finally starting to understand how LearnPress programming logic works. That way we can easily make adjustments to each individual’s needs.
Actually, I am not an expert in website development. I’m just someone who taught myself to build my website. That’s because I don’t have enough to pay a professional developer, hehe
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Profile pageYou can use function.php to hide certain menus in certain roles
I’m excited about this plugin because it provides the opportunity to do a lot of advanced things.
I’m currently interested in this issue. The last few days, I’ve been creating some new roles for LearnPress users.
Each role has different access and they need to make a special registration or purchase to change their role.
For customers, I divide several roles:
- Customers Free to the public, can only access courses marked for them
- Free Cutomer for students from official campuses or schools, they can only access lessons created by their lecturers or teachers.
- Paid customers, they can only access the courses they purchased.
Not all free courses are freely accessible. Only certain users can access it. So, free courses are divided into 2, some can be accessed by everyone, and some can be accessed by special roles.
Meanwhile, for instructors, I created 2 roles (could create more than that):
- Basic Instructor; They can’t sell courses
- Pro Instructor; They can sell courses and I earn commission from there.
- This reply was modified 9 months ago by soenarto.
Yes, 5 stars is appropriate. Thank you for your response in solving the problem.
I hope you don’t mind providing assistance if needed
I have tried reinstalling the beta version above. Everything has gone well. I think so.
The problem that occurred with the search filter above occurred because I had previously made changes outside of the procedure. I am sorry…
The temporary solution I found was to uncheck “load widget via REST”
- This reply was modified 9 months ago by soenarto.