WordPress.org

Ready to get started?Download WordPress

Forums

Ajaxy Live Search
Search Not Working After Block wp-admin (2 posts)

  1. sreerajr
    Member
    Posted 1 year ago #

    When I add The Following Code Ajax search Not working. Any Solution Please..

    function block_wp_admin_init() {
    if (strpos(strtolower($_SERVER['REQUEST_URI']),'/wp-admin/') !== false) {
    if ( !is_site_admin() ) {wp_redirect( get_option('siteurl'), 302 );}}}
    add_action('init','block_wp_admin_init',0);

    http://wordpress.org/extend/plugins/ajaxy-search-form/

  2. n-for-all
    Member
    Plugin Author

    Posted 1 year ago #

    if you do this, u will not allow any ajax plugin to work, because all requests of ajax are sent through /wp-admin/ directory.

    there is no workaround for this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags