Untitled
unknown
plain_text
a year ago
1.3 kB
4
Indexable
Never
add_action('marketking_extend_menu', function($menu){ ?> <li class="nk-menu-item"> <a href="<?php echo esc_attr(get_page_link(apply_filters( 'wpml_object_id', get_option( 'marketking_vendordash_page_setting', 'disabled' ), 'post' , true))).'templates';?>" class="nk-menu-link"> <span class="nk-menu-icon"><em class="icon ni ni-navigate-fill"></em></span> <span class="nk-menu-text"><?php echo 'Templates';?></span> </a> </li><!-- .nk-menu-item --> <?php }, 10, 1); add_action('marketking_extend_page', function($page){ if ($page === 'templates'){ ?> <div class="nk-content marketking_products_page"> <div class="container-fluid"> <div class="nk-content-inner"> <div class="nk-content-body"> <div class="nk-block-head nk-block-head-sm"> <div class="nk-block-between"> <div class="nk-block-head-content"> <h3 class="nk-block-title page-title"><?php esc_html_e('Templates','marketking-multivendor-marketplace-for-woocommerce'); ?></h3> </div><!-- .nk-block-head-content --> </div> </div> <div> New content here! Link to PHP templates here <?php include('products_templates.php'); ?> </div> </div> </div> </div> </div> <?php } });