• Resolved Anonymous User 13711045

    (@anonymized-13711045)


    It would be nice to have an option in the settings to remove the duplicate link from the admin bar. It looks like the option was meant to be there but wasn’t implemented.

    $options = get_option( ASENHA_SLUG_U, array() );
    $duplication_link_locations = array( 'post-action', 'admin-bar' );
    return $duplication_link_locations;

Viewing 6 replies - 1 through 6 (of 6 total)
  • would be nice to have select box display option none, admin area only, front end or only both

    • This reply was modified 11 months, 4 weeks ago by DJABHipHop.
    Bri

    (@tinnyfusion)

    Agreed. have a snippet to remove this in the meantime if you’d like me to share it here?

    Plugin Author Bowo

    (@qriouslad)

    @thekendog the option to choose on which locations you’d like to show duplication links is in the Pro version of ASE (screenshot here). For the free version, it defaults to show the link in the first two locations.

    @pressthemes1 probably too many options. I try to adhere by “decisions, not options” wherever possible.

    @tinnyfusion feel free to share.

    Bri

    (@tinnyfusion)

    // Remove admin bar menu items
    // Source: https://digwp.com/2016/06/remove-toolbar-items/
    /* ------------------------------------- */
    add_action( 'wp_before_admin_bar_render', 'ctm_remove_admin_toolbar_menu', 999);
    
    function ctm_remove_admin_toolbar_menu() {
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_menu('SG_CachePress_Supercacher_Purge');      // Remove Purge SG Cache (SiteGround Plugin)
        $wp_admin_bar->remove_menu('search');                               // Remove Search
        $wp_admin_bar->remove_menu('wp-statistic-menu');                    // Remove Online (WP Statistics Plugin)
        $wp_admin_bar->remove_menu('duplicate-content');                    // Remove Duplicate Content (Admin and Site Enhancements Plugin)
    } 
    /* ------------------------------------- */

    This includes a couple of other items I tend to remove too. Feel free to edit as required. Also provided the link to the site where I originally got this from too which has a full guide on how to remove any item you’d like (including from 3rd party plugins).

    Thread Starter Anonymous User 13711045

    (@anonymized-13711045)

    @qriouslad ah okay. That makes sense. Probably going to buy the pro version soon anyways. Thanks for the info!

    Plugin Author Bowo

    (@qriouslad)

    @thekendog you’re welcome. Thanks for considering purchasing the pro version. Hope you like it.

    • This reply was modified 11 months, 4 weeks ago by Bowo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Option to Remove Duplicate Link From Admin Bar’ is closed to new replies.