• Hi,

    Thanks for this great plugin!

    How do I add a custom destination because currently we can only set it to a wordpress page in the drop down, but we need it to go to a custom URL which has some post data in the url.

    If you can help with this it would be really appreciated!

    Thanks again!
    Mike.

    https://ww.wp.xz.cn/plugins/idle-user-logout/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter affarimike

    (@affarimike)

    I’ve been looking for the entry in the database to change manually, but no luck finding it.

    Not sure if this is a decent way if the plugin uses a database entry to store the destination URL.

    Just need the ability to input this to a manual URL.

    Hi affarimike,

    I see you know how to hop in into the database. So you might find this solution easy.

    The plugin do not store the url of any page, it stores page ID instead.

    However, you can change the URL using the hook defined within the plugin.

    As discussed in another thread (https://ww.wp.xz.cn/support/topic/custom-redirect-3), you can add following code in your child theme, or custom plugin.

    add_filter( 'iul_action', 'modify_iul_action' );
    function modify_iul_action($action){
    	$action['action_type'] = 5;
    	$action['action_value'] = 'http://google.com';
    	return $action;
    }
    Plugin Author Abiral Neupane

    (@abiralneupane)

    Hello,

    Did the solution work for you?

    If yes, please close this ticket, otherwise, you can ask again. 🙂

    Regards

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

The topic ‘Custom URL Redirect’ is closed to new replies.