📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 10:18:50
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
wp-user-manager
/
templates
/
profiles
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/wp-user-manager/templates/profiles
🔄 Refresh
✏️
Editing: comments.php
Writable
<?php /** * The Template for displaying the profile comments tab content. * * This template can be overridden by copying it to yourtheme/wpum/profiles/comments.php * * HOWEVER, on occasion WPUM will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @version 1.0.0 */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; $comments = wpum_get_comments_for_profile( $data->user->ID ); ?> <div id="profile-comments"> <?php if( ! empty( $comments ) ) : foreach ( $comments as $comment ) : ?> <div class="wpum-single-comment" id="wpum-comment-<?php echo $comment->comment_ID;?>"> <?php $comment_content = wp_trim_words( $comment->comment_content, $num_words = 13, $more = null ); $the_post = get_the_title( $comment->comment_post_ID ); $the_permalink = get_post_permalink( $comment->comment_post_ID ); $the_date = get_comment_date( get_option( 'date_format' ), $comment->comment_ID ); ?> <p><?php printf( _x( '"%s" on <a href="%s">%s</a>, %s.', 'This text displays the comments left by the user on his profile page.', 'wp-user-manager' ), $comment_content, $the_permalink, $the_post, $the_date ); ?></p> </div> <?php endforeach; else : WPUM()->templates ->set_template_data( [ 'message' => sprintf( esc_html__( '%s has not made any comment yet.', 'wp-user-manager' ), $data->user->display_name ) ] ) ->get_template_part( 'messages/general', 'warning' ); endif; ?> </div>
💾 Save Changes
❌ Cancel