Questions tagged [learndash]
52 questions
0
votes
1 answer
LearnDash how to use same hook 2 times in same page
I am creating 2 different plugins for LearnDash ( One for Lesson , another for Topic ) in WordPress.
Here I have a requirement to use one LearnDash hook (ld_lesson_access_from) in both the plugins.
When I activate any one plugin , this hook works…

Parthavi Patel
- 739
- 11
- 28
0
votes
1 answer
How to make a typescript object with fields sorted by order of insertion
I am at odd situation where I need to make an object with unknown properties and these properties need to be in order of insertion. It's needed like this because I'm sending it to a server that I don't control. ex:
{
"sfwd-lessons": {
"256":…

Joseph.Botros
- 23
- 1
- 5
0
votes
0 answers
Unable to load a script several time on a page
I'm working a MCQ and would like to have random number to be display for my question and my answers.
basicaly, I have 12 names assign to 12 numbers and I have to choose in 5 answers which one is the correct one.
First question is working because, it…
0
votes
1 answer
add data attribute di wordpress body
using the code below, it doesn't add an attribute but everything is inserted as a class of the body, how can I fix it?
function edi_custom_body_attributes( $classes ) {
if (is_singular('sfwd-lessons')) {
$classes[] =…

bsiglio
- 1
0
votes
0 answers
Why doesn't learndash_get_groups_courses_ids() return any results?
I have the following code in a Wordpress shortcode:
$user_group_ids = learndash_get_users_group_ids( $userId ); // Get the groups ids that the user is enrolled in
echo "user_group_ids: " . print_r($user_group_ids,…

Steev0
- 41
- 1
- 7
0
votes
0 answers
TCPDF ERROR: SVG file not found https://example.com/wp-content/uploads/elc-tmp/elcQMkgSQ.svg
I have a LearnDash certificate Wordpress plugin that worked well before we moved to the new hosting two days ago. Once we moved, it can not generate any pdf certificates and throws error to users:
TCPDF ERROR: SVG file not found:…

Maxim507
- 13
- 3
0
votes
1 answer
How to create redirect for log in modal
I'm trying to redirect this login button to a different page upon log in success. How do I do that without a plugin?
I tried checking the Woo Commerce settings and LearnDash settings and it does not change. I tried looking in the PHP file but am not…

Sarah
- 11
- 1
0
votes
0 answers
How to send the actuat post data in WP Webhook plugins in Wordpress?
I am creating job listing using WP Job Manager plugin. I am detecting that trigger using WP Webhooks and then sending that data to Zapier. But everytime, I get only the default outgoing data. I don't have stuff like company name, website, location…

Zepticona
- 23
- 2
0
votes
0 answers
Get the associated social group of a learn dash group
I'm trying through your API to get the associated social buddy boss group of a learn dash group. To be more clear, this is what I'd like to…

bedfrag
- 1
0
votes
1 answer
Learn Dash Wordpress
i have a problem with the lesson in learndash wordpress. every time I click "Next" in the lesson section it always appears "please go back and complete the previous lesson" even though I have finished the lesson and require me to return to the…

Gustaf Bramantyo
- 1
- 1
0
votes
0 answers
Learndash custom plugin - how can I show only the student's enrolled courses?
I have created a plugin for my Learndash Wordpress site that lets me display courses, using learndash_course_grid, grouped by ld_course_tag, in a custom interface I created. Any suggestions on how I can get it to only show courses the logged in user…

Steev0
- 41
- 1
- 7
0
votes
0 answers
Learndash - Redirect back to last Topic/Lesson/Quiz when Course is Completed
I'm not familiar enough with WP hook / php code.
But what is the code/hook for redirected back to last Topic/Lesson/Quiz page/url when the course is completed?
By default, when the course is completed in Learndash, it will be redirected to course…

ovila10
- 1
- 2
0
votes
0 answers
How do I join the the tables related to the current user to retrieve the information from another table in a shortcode?
I have being trying to create a shortcode to retrieve the information from the csld_events and output in a certificate, but it turnout it is returning every event related to the course_id in the csld_events.
In this situation I could not find a way…

Dominick Siqueira
- 45
- 7
0
votes
0 answers
Add rich text editor Learndash answer textarea backend
I'm currently working on a LMS built with Learndash and Wordpress.
The rich text editor is enabled on question textareas but not on answer textareas.
I am grateful if anyone can help me.
Thanks,
`$settings = array(
'tinymce' => array(
'theme' =>…
0
votes
0 answers
LearnDash Setting fields are not getting selected
I have created a custom multi-select setting field on the lesson edit page in backend.
The code is as below
public function ld_custom_meta( $args ) {
$cur_post_id = $_GET['post'];
$get_ld_lesson_val = get_post_meta( $cur_post_id,…

Parthavi Patel
- 739
- 11
- 28