I want to remove "Phone : Click to view -Not verified" I need show contact number without clicking view text.
Tags: php
Published: 2022-05-25 14:42:37

I want to remove "Phone : Click to view -Not verified" I need show contact number without clicking view text. Just i want to clickble contact number, I tried to chnage few option but it's effects full website listing, Listing not show webiste ads side

<?php
                                    if ($adforest_theme['communication_mode'] == 'both' || $adforest_theme['communication_mode'] == 'phone') {
                                        $call_now = 'javascript:void(0);';
                                        if (wp_is_mobile())
                                            $call_now = 'tel:' . adforest_get_CallAbleNumber(get_post_meta($pid, '_adforest_poster_contact', true));

                                        $contact_num = get_post_meta($pid, '_adforest_poster_contact', true);
                                        $batch_text = '';
                                        if (isset($adforest_theme['sb_phone_verification']) && $adforest_theme['sb_phone_verification']) {
                                            $contact_num = get_user_meta($poster_id, '_sb_contact', true);
                                            if ($contact_num != "") {
                                                if (get_user_meta($poster_id, '_sb_is_ph_verified', true) == '1') {
                                                    $batch_text = __('Verified', 'adforest');
                                                } else {
                                                    $batch_text = __('Not verified', 'adforest');
                                                }
                                            } else {
                                                $contact_num = get_post_meta($pid, '_adforest_poster_contact', true);
                                                $batch_text = __('Not verified', 'adforest');
                                            }
                                        }
                                        if ($contact_num != "") {
                                            if (adforest_showPhone_to_users()) {
                                                $contact_num = __("Login To View", "adforest");
                                                $call_now = "javascript:void(0)";
                                                $adforest_login_page = isset($adforest_theme['sb_sign_in_page']) ? $adforest_theme['sb_sign_in_page'] : '';
                                                $adforest_login_page = apply_filters('adforest_language_page_id', $adforest_login_page);
                                                if ($adforest_login_page != '') {

                                                    $redirect_url = adforest_login_with_redirect_url_param(adforest_get_current_url());
                                                    $call_now = $redirect_url;
                                                }
                                           
                                            ?>
                                            <div class="col-xxl-6 col-lg-6 col-md-6 col-sm-12">
                                                <div class="ad-detail-2-click-view phone">
                                                    <a data-ad-id="<?php echo intval($pid); ?>"  href="<?php echo adforest_returnEcho($call_now); ?>" class="sb-click-num2" id="show_ph_div">
                                                        <span class="info-heading"><i class="fa fa-phone"></i><?php echo esc_html__('Phone :', 'adforest') ?></span>
                                                        <span class="sb-phonenumber"><?php echo __('Login to view', 'adforest'); ?></span>
                                                        <?php if ($batch_text != "") { ?>
                                                            <small class="sb-small">-<?php echo adforest_returnEcho($batch_text); ?></small><?php } ?>
                                                    </a>
                                                </div>
                                            </div>
                                            <?php
                                        } 
                                        
                                        else {   ?>
                                        
                                        <div class="col-xxl-6 col-lg-6 col-md-6 col-sm-12">
                                                <div class="ad-detail-2-click-view phone">
                                                    <a data-ad-id="<?php echo intval($pid); ?>"  href="<?php echo adforest_returnEcho($call_now); ?>" class="sb-click-num" id="show_ph_div">
                                                        <span class="info-heading"><i class="fa fa-phone"></i><?php echo esc_html__('Phone :', 'adforest') ?></span>
                                                        <span class="sb-phonenumber"><?php echo __('Click to view', 'adforest'); ?></span>
                                                        <?php if ($batch_text != "") { ?>
                                                            <small class="sb-small">-<?php echo adforest_returnEcho($batch_text); ?></small><?php } ?>
                                                    </a>
                                                </div>
                                            </div>
                                        
                                        
                                        
                                        
                                        
                                        
                                        <?php   }                 }
                                    }
                                    ?>

                                     <?php 
                        if ($allow_whizchat) {
                           ?>
                            <a  href="javascript:void(0)" class="btn btn-whizchat chat_toggler btn-block"  data-page_id="<?php echo esc_attr(get_the_ID()); ?>"   data-user_id ="<?php echo esc_attr($poster_id) ?>">
                                <i class="fa fa-commenting-o"></i> 
                 <span class=""><?php echo __('Live Chat', 'adforest'); ?></span>
                            </a>
                        <?php }                                            
                        if ($allow_whatsapp && $contact_num != "") {                                              
                            $redirect_url   =  "https://api.whatsapp.com/send?phone=$contact_num";
                                if (adforest_showPhone_to_users()) {
                                    $adforest_login_page = isset($adforest_theme['sb_sign_in_page']) ? $adforest_theme['sb_sign_in_page'] : '';
                                    $adforest_login_page = apply_filters('adforest_language_page_id', $adforest_login_page);
                                    if ($adforest_login_page != '') {
                                        $redirect_url = adforest_login_with_redirect_url_param(adforest_get_current_url());           
                                }
                                }                     
                            ?>
                            <a  href="<?php echo esc_url($redirect_url); ?>" class="btn btn-whatsap btn-block">
                                <i class="fa fa-whatsapp"></i> 
                                <span class=""><?php echo __('WhatsApp', 'adforest'); ?></span>
                            </a>
                            <?php
                        }                       
                        ?> 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qclioca3xm84i0y76d2.jpeg)