disabled author pages
This commit is contained in:
parent
534c872e2e
commit
b80c317217
@ -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' );
|
Loading…
Reference in New Issue
Block a user