Untitled

 avatar
unknown
plain_text
a year ago
861 B
5
Indexable
add_filter('salesking_include_subagent_orders','__return_true');
add_action('salesking_my_orders_custom_columns', function(){
    ?>
    <th class="nk-tb-col tb-col-md"><span class="sub-text"><?php esc_html_e('Agent Assigned','salesking'); ?></span></th>
    <?php
});
add_action('salesking_my_orders_custom_columns_footer', function(){
    ?>
    <th class="nk-tb-col tb-col-md"><?php esc_html_e('agent','salesking'); ?></th>
    <?php
});
add_action('salesking_my_orders_custom_columns_content', function($order){
    $agent = $order->get_meta('salesking_assigned_agent');
    $agentuser = new WP_User($agent);
    $agent = $agentuser->user_login;
    ?>
    <td class="nk-tb-col" data-order="<?php echo esc_html($agent);?>">

        <div>
            <span class="tb-lead"><?php echo esc_html($agent);?></span>
        </div>

    </td>
    <?php
}, 10, 1);
Editor is loading...
Leave a Comment