• Resolved sslv

    (@sslv)


    Hi,

    I’m trying to enable each of my users to create up to 3 locations. When attempting to create a 4th location the system won’t allow them and redirect them to the following page showing the following message:

    https://paste.pics/8708d1cd9636f840255c718cfb27a017

    What I want to do is to prevent redirecting to new page as well as change the text shown in the alert to something like:

    “You have reached the limit of places you can add at this time. If you want to add a new shop please contact our Customer Support Team!”

    Please let me know if this is possible.

    Thanks for your time,
    SSLV

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @sslv ,

    Try this code snippet:

    add_filter('geodir_user_posts_limit_message','_my_custom_limit_message',10,5);
    function _my_custom_limit_message($message, $posts_limit, $posts_count, $posts_limits, $params ){
        $message = "You have reached the limit of places you can add at this time. If you want to add a new shop please contact our Customer Support Team!";
        return $message;
    }

    Thanks,

    Stiofan

    Thread Starter sslv

    (@sslv)

    Hi Stiofan,

    Thanks for your reply. This works great! The alert message has changed. However, is it possible to prevent redirecting to new page?

    Thanks,
    Loizos

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change limit posts notification alert?’ is closed to new replies.