Skip to main content
Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [label] => Home
                    [link] => https://sftlatestbackup.staging33.com
                    [title] => Home
                    [type] => blog_home
                )

            [1] => Array
                (
                    [label] => Knowledge Base
                    [link] => https://sftlatestbackup.staging33.com/knowledge-base/
                    [title] => Knowledge Base
                    [type] => kb_home
                )

            [2] => Array
                (
                    [label] => Upsells For LearnDash Developer Documentation
                    [link] => https://sftlatestbackup.staging33.com/article-categories/ldups-developer-documentation/
                    [title] => View all posts in Upsells For LearnDash Developer Documentation
                    [type] => kb_tax
                )

            [3] => Array
                (
                    [label] => Using Action Hooks and Filters in Upsells for LearnDash
                    [link] => https://sftlatestbackup.staging33.com/knowledge-base/can-i-choose-which-courses-to-display-as-upsells-2/
                    [title] => Using Action Hooks and Filters in Upsells for LearnDash
                    [type] => kb_current_page
                )

        )

)
  1. Home
  2. Knowledge Base
  3. Upsells For LearnDash Developer Documentation

Using Action Hooks and Filters in Upsells for LearnDash

If you wish to extend or customize the Upsells for LearnDash plugin’s functionality, you can use the following action hooks and filters. These hooks allow developers to inject custom content or modify output dynamically, ensuring flexibility across different themes and layouts.

ldups_after_course_price

This hook helps you display custom content after the course price. You can use it to add discount information, promotional tags, or call-to-action links.
Hook:

Parameter: $course_id (int) — The ID of the current course.

Description: Use this action to inject dynamic messages or additional elements below the course price in the Upsells widget.
Example:

Filters
ldups_course_currency_change
This filter lets you change the currency symbol displayed before the course price. It’s especially useful if you want to display a different currency symbol or format prices dynamically based on user location or settings.
Filter:

Parameters:
$currency (string) — Current currency symbol used before the price.
$course_id (int) — The ID of the current course.
Description:
Use this filter to override the default currency symbol or modify it programmatically before rendering the price.
Example:

ldups_course_currency_change

This filter lets you change the currency symbol displayed before the course price. It’s especially useful if you want to display a different currency symbol or format prices dynamically based on user location or settings.
Filter:

Parameters:
$currency (string) — Current currency symbol used before the price.
$course_id (int) — The ID of the current course.
Description:
Use this filter to override the default currency symbol or modify it programmatically before rendering the price.
Example:

Was this article helpful?

Need Support?

Can't find the answer you're looking for?
Contact Support