diff --git a/functions.php b/functions.php index 7c40e7c..0b8d11b 100644 --- a/functions.php +++ b/functions.php @@ -134,3 +134,13 @@ function fkinfood_register_block_styles() { } add_action( 'init', 'fkinfood_register_block_styles' ); + +function disable_author_page() { + global $wp_query; + + if ( is_author() ) { + wp_redirect(get_option('home'), 301); + exit; + } +} +add_action( 'template_redirect', 'disable_author_page' ); \ No newline at end of file