bio.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Profile Bio Template |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Profile |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @since 1.4.3 |
| 10 | */ |
| 11 | |
| 12 | $user_name = sanitize_text_field( get_query_var( 'tutor_profile_username' ) ); |
| 13 | $get_user = tutor_utils()->get_user_by_login( $user_name ); |
| 14 | $user_id = $get_user->ID; |
| 15 | |
| 16 | |
| 17 | $profile_bio = get_user_meta( $user_id, '_tutor_profile_bio', true ); |
| 18 | |
| 19 | if ( $profile_bio ) { |
| 20 | ?> |
| 21 | <?php echo wp_kses_post( wpautop( $profile_bio ) ); ?> |
| 22 | <?php |
| 23 | } else { |
| 24 | esc_html_e( 'Bio data is empty', 'tutor' ); |
| 25 | } |
| 26 |