Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wcfmmp_store_before_products', function() {
- global $WCFMmp;
- $wcfm_store_url = wcfm_get_option( 'wcfm_store_url', 'store' );
- $wcfm_store_name = apply_filters( 'wcfmmp_store_query_var', get_query_var( $wcfm_store_url ) );
- if ( empty( $wcfm_store_name ) ) return;
- $seller_info = get_user_by( 'slug', $wcfm_store_name );
- if ( ! $seller_info ) return;
- $store_user = wcfmmp_get_store( $seller_info->ID );
- $store_info = $store_user->get_shop_info();
- $WCFMmp->template->get_template( 'store/wcfmmp-view-store-about.php', array( 'store_user' => $store_user, 'store_info' => $store_info ) );
- } );
- add_filter('wcfmmp_store_tabs', function($store_tabs) {
- if(isset($store_tabs['about'])) {
- unset($store_tabs['about']);
- }
- return $store_tabs;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement