disabled author pages

This commit is contained in:
Felix Baumgärtner 2023-12-23 15:09:00 +01:00
parent 534c872e2e
commit b80c317217

View File

@ -134,3 +134,13 @@ function fkinfood_register_block_styles() {
} }
add_action( 'init', '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' );