WordPress.org

Ready to get started?Download WordPress

Forums

YD Network-wide Options
[resolved] settings page gives 404 on 3.4.2 Multisite (2 posts)

  1. msenate
    Member
    Posted 1 year ago #

    Pretty good idea for a plugin, would save me lots of time/energy. Any plans to continue on this?

    http://wordpress.org/extend/plugins/yd-wpmu-sitewide-options/

  2. msenate
    Member
    Posted 1 year ago #

    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="http://www.yann.com/en/wp-plugins/yd-wpmu-sitewide-options">' . __('Support') . '</a>';
            }
            return $links;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags