Search Not Working After Block wp-admin
-
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);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Search Not Working After Block wp-admin’ is closed to new replies.