Jump to content
jojoking

[Solved] Shoplines Section Plugin

Recommended Posts

jojoking

My site is a membership site which uses the standard Wordpress login page wp-login.php.

I've been trying to track down why the "Register" link on the login page points to "[home-url]/sign-up" as I haven't consciously set it to override the standard  'wp-login.php?action=register' setting. I actually was trying to point this to my own url "[home-url]/signup" using the WP filter 'register_url' to no effect.

I've tracked down the problem to the Shoplines section plugin file pl-section-shoplines.php.

It turns out that even though I haven't actually used the Shoplines section (though I've installed and activated the plugin - no settings), the plugin defines uses the 'register' filter to change the registration url.

  /**
   * Change the WP register url
   */
  function wp_register_url( $url ) {
    return sprintf( '<a href="%ssign-up">%s</a>',
    get_permalink( get_option('woocommerce_myaccount_page_id') ),
    __( 'Register', 'pl-section-shoplines' )
   );
  }

I've now deactivated the plugin and am able to use the 'register_url' filter in my own code to achieve what I needed to do.

IS THIS A BUG OR A FEATURE?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×