| Server IP : 172.67.134.116 / Your IP : 216.73.216.40 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/sfwd-lms/includes/shortcodes/ |
Upload File : |
<?php
/**
* LearnDash `[ld_reset_password]` shortcode processing.
*
* @since 4.4.0
* @package LearnDash\Shortcodes
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Builds the `[ld_reset_password]` shortcode output.
*
* @global boolean $learndash_shortcode_used
*
* @since 4.4.0
*
* @param array $attr {
* An array of shortcode attributes.
*
* @type string $width Width of the reset password form. Default empty.
* }.
* @param string $content The shortcode content. Default empty.
* @param string $shortcode_slug The shortcode slug. Default 'ld_reset_password'.
*
* @return string The `ld_reset_password` shortcode output.
*/
function learndash_reset_password( $attr = array(), $content = '', $shortcode_slug = 'ld_reset_password' ) {
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_reset_password_output( $attr );
$content .= learndash_ob_get_clean( $level );
return $content;
}
add_shortcode( 'ld_reset_password', 'learndash_reset_password' );