• It blocks the plugin wp-search-suggest witch is logical, now I installed and changed somethings (hours of work).
    The plugins looks to the backend for the search suggestions, but when wp-user-frontend is installed that is blocked. Hope there is a way around this. If any body has any idea’s, please let me know.

    http://wordpress.org/extend/plugins/wp-user-frontend/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey ronthai,

    this should work:

    function wpuf_fix() {
        if ( defined('DOING_AJAX') AND DOING_AJAX ) {
            remove_action( 'admin_init', 'wpuf_restrict_admin_access', 10 );
        }
    }
    add_action( 'admin_init', 'wpuf_fix', 9 );

    Paste that in the functions.php file of your theme and let me know if it doesn’t solve your problem.

    Cheers,
    Konstantin

    Thread Starter ronthai

    (@ronthai)

    Thanks Konstantin,
    That did the job. It took me 3 tries, but that is just because I am a total novice with php.
    First I just pasted it on top of the theme functions.php, which just put the whole code as text (yes, stupid me)
    Second I pasted it in an excisting <?php … ?> which stop giving the error, but all search suggestions had only 1 suggestion and that was -1, yes -1 whatever, where ever that comes from.
    Third try, I pasted it in its OWN <?php … ?> part/field, whatever it is called and that did the job. I even tried it on my laptop as a final test, since the laptop does not know me as an admin and has no cache what so ever on it for the website with the plugin.
    It works perfect now.

    As far as I can tell it does not touches anything from wp-user-frontend, it seems to be working as it should.

    Rating 5 stars and told it works with 3.12

    Thank you and regards, Ron

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

The topic ‘[Plugin: WP User Frontend] Locks access for wp-search-suggest’ is closed to new replies.