Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Last active February 3, 2020 09:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/897f9f009ea2225fba37f7f95779ee9a to your computer and use it in GitHub Desktop.
Save KaineLabs/897f9f009ea2225fba37f7f95779ee9a to your computer and use it in GitHub Desktop.
Disable Author Page Redirect
<?php
/**
* Remove Buddypress Author Page Redirect
*/
function yzc_remove_author_page_redirect() {
remove_action( 'template_redirect', 'yz_redirect_author_page_to_bp_profile', 5 );
}
add_action( 'init', 'yzc_remove_author_page_redirect', 5 );
/**
* Remove Buddypress Author Link
*/
function yzc_remove_bp_author_profile_link() {
remove_filter( 'author_link', 'yz_edit_author_link_url', 9999, 3 );
}
add_action( 'init', 'yzc_remove_bp_author_profile_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment