Support » Plugin: WCFM Marketplace - Best Multivendor Marketplace for WooCommerce » How do I access $store_user->get_id() in a filter?

  • Resolved xjamesb


    I want to filter the text on the Store page “About” tab. To do this I need to access $store_user->id so that I can look up additional information.

    I expect

    add_filter( 'wcfmmp_store_about','jb_about_tab',100);
    function jb_about_tab($about){
        $store_user_id = $store_user->get_id(); //this is NULL!!!
        $about = jb_about_content($store_user_id);
        //return $about;
        return $store_user_id;

    to successfully find the store_user_id for the current store. Actually it is null.

    * how do I find the current store?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I access $store_user->get_id() in a filter?’ is closed to new replies.