• Resolved luigi

    (@corlui)


    Hi and compliment your plugin,
    is it possible when you created a page to make it private for members?
    if you can know how to do it
    thank you very much
    Luigi

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter luigi

    (@corlui)

    Turning, turning and solving all thanks

    Plugin Author Nahid Ferdous Mohit

    (@nfmohit)

    Hey there @corlui !
    I hope you are having a great day!

    I’m sorry that I took so long in getting back to you. I’m glad to hear that you were able to resolve this issue.

    For future reference just in case anyone else is looking for this, you can try the following custom code:

    function exclude_tab_if_not_personal_profile() {
        if ( ! bp_is_my_profile() ) {
            bp_core_remove_nav_item( 'test' );
        }
    }
    add_action( 'bp_init', 'exclude_tab_if_not_personal_profile' );

    You’ll need to replace test with the slug of your custom menu page.

    I hope the above helps. Please let me know if you need any further assistance regarding this, or anything else. Thanks!

    If this plugin was useful to you, I’d really appreciate if you could share your feedback regarding the plugin in the form of a review so that it can help other users seeking a similar solution.

    Kind regards,
    Nahid

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘shorcode’ is closed to new replies.