Fix email templates.
This commit is contained in:
@@ -13,6 +13,7 @@ if ( opalestate_get_option( 'enable_single_author_box' , 'on') != 'on' ) {
|
||||
$type = $property->get_author_type();
|
||||
$data = get_userdata( $post->post_author );
|
||||
$layout = '';
|
||||
|
||||
switch ( $type ) {
|
||||
case 'hide':
|
||||
return;
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
?>
|
||||
<p class="agent-box-job"><?php echo esc_html( $job ); ?></p>
|
||||
|
||||
<?php $email = get_user_meta( $user_id, $prefix . 'email', true ); ?>
|
||||
<?php $email = get_userdata( $user_id )->user_email; ?>
|
||||
<?php if ( ! empty( $email ) ) : ?>
|
||||
<div class="agent-box-email">
|
||||
<i class="fa fa-envelope"></i>
|
||||
|
||||
Reference in New Issue
Block a user