Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    I am not sure of your last reply.

    I posted that code to show what we have exposed. You can add to that filter and use woo subscription to decide whether to return true/false.

    It will be a simple code with only 1 or 2 lines. I am sorry but I am not familiar with the WooMemberships or Subscription so I may not be able to help.

    If you can provide me the function for checking expired membership for a given user, I can certainly write the code for you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi J,
    Welcome to BuddyDev.
    1. I am sorry but at the moment, the plugin can handle only one post type. You will need to use category or custom field for managing two types. Or you can extend the plugin(which will be major work)

    Using WordPress Template hierarchy, you can easily create different layout for different kind of the posts.

    About membership, we have a hook like this

    
    
    apply_filters( 'buddyblog_user_can_publish', $can_publish, $user_id )
    
    

    You can filter on ‘buddyblog_user_can_publish’ and customize the permission as you will like.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Ahh well, Just noticed that BuddyPress Codex does offer a list.

    Please see here
    https://codex.buddypress.org/developer/template-tag-reference/#is_-functions

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: There are no galleries available #9458

    Hi Abe,
    your configuration seems fine to me.
    I am not sure what might have caused it. Can you please provide me temporary admin access to your dev site?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468
    Brajesh Singh on in reply to: Custom PHP for one page on one multisite blog #9457

    Hi Matthew,
    Thank you for posting.

    The best way to do it will be by using a child theme.

    In case of Multisite, The theme is visible to normal blog admins only if it is network enabled. In your case, you will not network enable the chaild theme. That will make it invisible for others.

    To assign it to the specific blog, you can do that by following the below steps:-

    1.Please visit Network Admin->Sites and click on Edit under the specific blog.
    2. Click on the “Themes” tab
    3. Enable the child theme for this blog
    4. visit the dashobard of the log and Use the child theme.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    You are welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Thank you for posting.

    It’s a good topic. I am interested in writing a detailed post about it as It may help many. There are a lot of useful conditional functions for BuddyPress. Please allow me 2-3 days to post and link to you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Matthew,
    I am sorry but the only reason the widget won’t be visible is when the user is already a member of the current blog.

    Can you please register a user on main sit and try to visit a sub site using that member account and verify it?

    Thank you
    brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    you are welcome. all the best with the launch 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25468

    Hi Keri,
    Thank you.

    WordPress does not offer any function to check for the role directly. You can use current_user_can(‘some_capability’) in that case to make it possible.

    Hope that helps.