Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter shopcentral

    (@shopcentral)

    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

    Thread Starter shopcentral

    (@shopcentral)

    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”)

    Thread Starter shopcentral

    (@shopcentral)

    also, what’s the 10, 2 elements of that script snippet?

    Thread Starter shopcentral

    (@shopcentral)

    thanks – but being a noob, where exactly should I add this?

    Thread Starter shopcentral

    (@shopcentral)

    thanks, but not AFTER login

    need subdomain.domain.com/wp-login.php to redirect to domain.com/wp-login.php

    Thread Starter shopcentral

    (@shopcentral)

    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?

    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/

    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)