Skip to:
Content
Pages
Categories
Search
Top
Bottom

WP Adverts in Buddypress Group


  • yeochinsoon
    Participant

    @yeochinsoon

    I need help with some parameters.

    I am using WP adverts with Buddypress Tab Group Creator Pro to allow Group to create and list some adverts.

    WP Adverts support provided the following filter for theme function below:
    add_action( “adverts_list_query”, function( $args ) {
    if( bp_displayed_user_id() > 0 ) {
    $args[“author”] = bp_displayed_user_id();
    }
    return $args;
    } );

    Is it possible to change bp_displayer_user_id to Group administrator id? This way, only adverts created by that particular group / group admin user will be display in that group profile.

    Thanks

  • You must be logged in to reply to this topic.
Skip to toolbar