Title: shopcentral's Replies | WordPress.org

---

# shopcentral

  [  ](https://wordpress.org/support/users/shopcentral/)

 *   [Profile](https://wordpress.org/support/users/shopcentral/)
 *   [Topics Started](https://wordpress.org/support/users/shopcentral/topics/)
 *   [Replies Created](https://wordpress.org/support/users/shopcentral/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/shopcentral/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/shopcentral/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/shopcentral/engagements/)
 *   [Favorites](https://wordpress.org/support/users/shopcentral/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [global redirect to main blog login](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/#post-3894019)
 * okay – I have the contents of the file as follows (I have given you credit on
   this one… I hope you don’t mind):
 * file name: my_filter_function.php which resides in /wp-content/mu-plugins
 *     ```
       <?php
       /*
       Plugin Name: my_filter_function
       Plugin URI:
       Description: global redirect for WP Multisite to root site login
       Version: V1.0
       Author: David Sader
       Author URI: http://profiles.wordpress.org/users/dsader/
       License: A "Slug" license name e.g. GPL2
       */
       ?>
   
       <?php add_filter( 'login_url', create_function( '$url,$redirect', 'return network_site_url("wp-login.php");' ), 10, 2 ); ?>
       ```
   
 * I am getting the following errors:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/stuff/public_html/wp-content/mu-plugins/my_filter_function.php:13) in/
   home/stuff/public_html/wp-content/plugins/woocommerce/classes/class-wc-session-
   handler.php on line 63
 * Warning: session_start() [function.session-start]: Cannot send session cookie–
   headers already sent by (output started at /home/stuff/public_html/wp-content/
   mu-plugins/my_filter_function.php:13) in /home/stuff/public_html/wp-content/plugins/
   e-newsletter/e-newsletter.php on line 2043
 * Warning: session_start() [function.session-start]: Cannot send session cache 
   limiter – headers already sent (output started at /home/stuff/public_html/wp-
   content/mu-plugins/my_filter_function.php:13) in /home/stuff/public_html/wp-content/
   plugins/e-newsletter/e-newsletter.php on line 2043
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [global redirect to main blog login](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/#post-3894016)
 * WOW!! – Thank you!!
 * I am very appreciative of the time and effort you have given me – can I Paypal
   you a beer at the end of all this?? lol.
 * few q…
 * do these stay as they are or need to be replaced with anything?
 * In other words, do I simply copy cut paste what you have here or are there variables
   in that snippet that need changing?
 * Sorry to make you have to spell all this out for me/us/the community noobs out
   here…..
 * login_url
 * $url
 * $redirect
 * return network_site_url(“wp-login.php”)
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [global redirect to main blog login](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/#post-3893981)
 * also, what’s the 10, 2 elements of that script snippet?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [global redirect to main blog login](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/#post-3893979)
 * thanks – but being a noob, where exactly should I add this?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [global redirect to main blog login](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/global-redirect-to-main-blog-login/#post-3893881)
 * thanks, but not AFTER login
 * need subdomain.domain.com/wp-login.php to redirect to domain.com/wp-login.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Logged Out Admin Bar] tweak to register & Log in links](https://wordpress.org/support/topic/tweak-to-register-log-in-links/)
 *  Thread Starter [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/tweak-to-register-log-in-links/#post-3859482)
 * me again….
 * in this line here… I wish to redirect all subdomain visitors to the main blog
   login when they click on the link in the admin bar
 * $wp_admin_bar->add_menu( array( ‘title’ => __( ‘Log In’ ), ‘href’ => wp_login_url(),‘
   parent’ => ‘top-secondary’ ) );
 * … how can I hard code this to our main blog?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Customer Reviews] Star Rating Only](https://wordpress.org/support/topic/star-rating-only/)
 *  [shopcentral](https://wordpress.org/support/users/shopcentral/)
 * (@shopcentral)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/star-rating-only/#post-3296579)
 * hi there
 * I just started using this plugin today – kinda worries me that your posting is
   6 months old and no response!!
 * There is another plugin if you haven’t found it already that does that –
 * [http://wordpress.org/plugins/rating-widget/](http://wordpress.org/plugins/rating-widget/)
 * You’ve prob found this by now but thought I’d throw it up to help others out 
   there….

Viewing 7 replies - 1 through 7 (of 7 total)