Viewing 1 replies (of 1 total)
  • Thread Starter msenate

    (@msenate)

    I simply added an is_network_admin() check to this function so that settings link does not display on the network admin plugins page:

    /** Add links on the plugin page (short description) **/
    add_filter( 'plugin_row_meta', 'yd_wpmuso_links' , 10, 2 );
    function yd_wpmuso_links( $links, $file ) {
            $base = plugin_basename(__FILE__);
            if ( $file == $base && ! is_network_admin() ) {
                    $links[] = '<a href="options-general.php?page=yd-wpmu-sitewide-options%2F' . basename( __FILE__ ) . '">' . __('Settings') . '</a>';
                    $links[] = '<a href="https://www.yann.com/en/wp-plugins/yd-wpmu-sitewide-options">' . __('Support') . '</a>';
            }
            return $links;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘settings page gives 404 on 3.4.2 Multisite’ is closed to new replies.