WordPress.org

Forums

BuddyPress Docs
Change position of Drop Down In BuddyPress Docs (6 posts)

  1. shobhit123
    Member
    Posted 1 year ago #

    Hi There,

    I am using Buddy Press Docs, and in Action Section (Toggle Area) it shows Anyone in first position

    i.e.

    1. Anyone
    2. LoggedIn user
    3. The Doc Author Only

    All I want to reorder it like

    1. The Doc Author Only
    2. Anyone
    3. LoggedIn user

    See attached snapshot…

    As of now I have
    http://chaudhary.byethost9.com/buddypress/1.png
    I want like this
    http://chaudhary.byethost9.com/buddypress/2.png

    Is there any way to do this, I am struggling with this but till now, didn’t any success.

    Any help would be appreciated!!

    Thanks

    Shobhit

    http://wordpress.org/plugins/buddypress-docs/

  2. Boone Gorges
    Member
    Plugin Author

    Posted 1 year ago #

    Shobhit -

    This should be possible. Filter 'bp_docs_get_access_options' to resort the array. Something like:

    function bbg_sort_bp_docs_access_options( $o ) {
        return array(
            0 => $o[90],
            1 => $o[20],
            2 => $o[10],
        );
    }
    add_filter( 'bp_docs_get_access_options', 'bbg_sort_bp_docs_access_options' );
  3. shobhit123
    Member
    Posted 1 year ago #

    Hi Boone,

    Thanks for your reply!!

    I really appreciated.

    In which file I have to find this the function or write this function??

  4. shobhit123
    Member
    Posted 1 year ago #

    Hi Boone,

    It works for me, but as of now Anyone is selected I want The Doc Author Only to Selected as well.

    1. The Doc Author Only (Selected)
    2 .Anyone
    3. LoggedIn user

  5. shobhit123
    Member
    Posted 1 year ago #

    Hi Boone,

    Have'nt hear anything yet.

    Please respond...

  6. shobhit123
    Member
    Posted 1 year ago #

    Hi Boone,

    Still awaiting to hear from you??

    Please respond asap...

    Thanks

    Shobhit

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Docs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic