<?php /** * LearnDash `[ld_registration]` shortcode processing. * * @since 3.6.0 * @package LearnDash\Shortcodes */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Builds the `[ld_registration]` shortcode output. * * @global boolean $learndash_shortcode_used * * @since 3.6.0 * * @param array $attr { * An array of shortcode attributes. * * @type string $width Width of the registration form. Default empty. * }. * @param string $content The shortcode content. Default empty. * @param string $shortcode_slug The shortcode slug. Default 'ld_registration'. * * @return string The `ld_registration` shortcode output. */ function learndash_registration( $attr = array(), $content = '', $shortcode_slug = 'ld_registration' ) { global $learndash_shortcode_used; $learndash_shortcode_used = true; if ( ! is_array( $attr ) ) { $attr = array(); } $attr = shortcode_atts( array( 'width' => '', ), $attr ); /** This filter is documented in includes/shortcodes/ld_course_resume.php */ $attr = apply_filters( 'learndash_shortcode_atts', $attr, $shortcode_slug ); $level = ob_get_level(); ob_start(); learndash_registration_output( $attr ); $content .= learndash_ob_get_clean( $level ); return $content; } add_shortcode( 'ld_registration', 'learndash_registration', 10, 3 );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ld_certificate.php | File | 8.85 KB | 0644 |
|
ld_course_certificate.php | File | 2.14 KB | 0644 |
|
ld_course_complete.php | File | 2.35 KB | 0644 |
|
ld_course_content.php | File | 14.56 KB | 0644 |
|
ld_course_expire_status.php | File | 4.86 KB | 0644 |
|
ld_course_info.php | File | 1.58 KB | 0644 |
|
ld_course_inprogress.php | File | 2.36 KB | 0644 |
|
ld_course_list.php | File | 45.9 KB | 0644 |
|
ld_course_notstarted.php | File | 2.36 KB | 0644 |
|
ld_course_progress.php | File | 3.26 KB | 0644 |
|
ld_course_resume.php | File | 4.51 KB | 0644 |
|
ld_courseinfo.php | File | 17.25 KB | 0644 |
|
ld_group.php | File | 2.49 KB | 0644 |
|
ld_group_list.php | File | 1.21 KB | 0644 |
|
ld_group_user_list.php | File | 4.69 KB | 0644 |
|
ld_groupinfo.php | File | 9.34 KB | 0644 |
|
ld_infobar.php | File | 6.52 KB | 0644 |
|
ld_lesson_list.php | File | 2.07 KB | 0644 |
|
ld_materials.php | File | 2.68 KB | 0644 |
|
ld_navigation.php | File | 5.25 KB | 0644 |
|
ld_payment_buttons.php | File | 2.2 KB | 0644 |
|
ld_profile.php | File | 7.72 KB | 0644 |
|
ld_quiz.php | File | 15.78 KB | 0644 |
|
ld_quiz_complete.php | File | 2.07 KB | 0644 |
|
ld_quiz_list.php | File | 3.12 KB | 0644 |
|
ld_quizinfo.php | File | 9.4 KB | 0644 |
|
ld_registration.php | File | 1.29 KB | 0644 |
|
ld_reset_password.php | File | 1.3 KB | 0644 |
|
ld_student.php | File | 5.17 KB | 0644 |
|
ld_topic_list.php | File | 2.68 KB | 0644 |
|
ld_user_course_points.php | File | 1.86 KB | 0644 |
|
ld_user_groups.php | File | 2.17 KB | 0644 |
|
ld_usermeta.php | File | 2.97 KB | 0644 |
|
ld_visitor.php | File | 4.81 KB | 0644 |
|
learndash_user_status.php | File | 1.79 KB | 0644 |
|
shortcodes-functions.php | File | 3.12 KB | 0644 |
|
shortcodes-loader.php | File | 1.8 KB | 0644 |
|