Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Wells

    (@davidwells)

    You will need to setup conditional logic for userroles.

    You can submit pull requests here: https://github.com/inboundnow/landing-pages

    Thread Starter bridieamelia

    (@bridieamelia)

    Thanks for the reply. I’ll look into the conditional logic. I’d love to know how to submit a pull request…just a fledgling developer here!

    Do I simply click on “Pull Requests” and type in a request that the links not show unless admin?

    Apologies for my newbieness 🙂

    Thread Starter bridieamelia

    (@bridieamelia)

    Hi again,

    So having done some searching, I found the following code on your support forum:

    <?php
    
    function remove_inbound_admin_bar() {
        global $wp_admin_bar;
         if ( is_user_logged_in() && !current_user_can( 'manage_options' )) {
          $wp_admin_bar->remove_menu('inbound-admin-bar');
         }
    }
    add_action( 'wp_before_admin_bar_render', 'remove_inbound_admin_bar' );

    Which worked a treat for the Marketing menu item.

    What would the slugs for “Launch Visual Editor” and “View Landing Page List” be, if I were to add remove_menu() for them as well?

    Or, could you suggest another approach? The landing page is the only page now showing Landing Page menu items, which is not great for conversion.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Access to Visual Editor and Landing Page List links in conjunction with Buddypre’ is closed to new replies.