Results 1 to 2 of 2

Thread: Custom Logout Slug

  1. #1
    Thread Starter
    Member davideus's Avatar
    Join Date
    Sep 2013
    Location
    Georgia
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Custom Logout Slug

    In classipress 3.3 i've changed logout slug to just "logout" with this script in functions.php

    Code:
    function logout_slug_handle()
    	{
    		add_option("logout_slug", "logout");
    	}
    
    		if(get_option("logout_slug") != "" && (strpos(strtolower($_SERVER['REQUEST_URI']),get_option("logout_slug")) !== false))
    		{
    			wp_logout();
    			wp_redirect(get_option('siteurl'));
    			exit;
    		}
    		else if(get_option("logout_slug") != "")
    	{
    		add_filter('logout_url', 'new_logout_url', 10, 2);
    		function new_logout_url($logout_url, $redirect)
    		{
    			return "/".get_option("logout_slug");
    		}
    	}
    But after updating to classipress 3.3.1 it's not working anymore....

    any suggestions?

  2. #2
    Thread Starter
    Member davideus's Avatar
    Join Date
    Sep 2013
    Location
    Georgia
    Posts
    63
    Thanks
    5
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Jomark Slug renaming -2
    By ja1nsa in forum Help Using JobRoller
    Replies: 1
    Last Post: November 4th, 2013, 10:06 AM
  2. [SOLVED] Can't logout
    By joewakeford in forum Report JobRoller Bugs
    Replies: 3
    Last Post: January 10th, 2013, 05:34 PM
  3. how to redirect the old store slug to new store slug?
    By couponspicy in forum Report Clipper Bugs
    Replies: 2
    Last Post: May 5th, 2012, 05:55 AM
  4. Slug problem
    By slmedia in forum Report JobRoller Bugs
    Replies: 3
    Last Post: June 17th, 2011, 06:48 AM
  5. [SOLVED] Change of slug
    By isimone in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: January 17th, 2011, 07:46 AM