Open photocurio opened 1 year ago
NM, solved it. It needs priority 12:
add_action( 'init', 'remove_coauthors_plus_parse_request', 12 );
public function remove_coauthors_plus_parse_request() {
global $coauthors_plus;
remove_action( 'parse_request', [ $coauthors_plus->guest_authors, 'action_parse_request' ] );
}
I need to remove the redirect that sends requests for Author pages to linked Guest Author pages. The redirect is in class-coauthors-guest-authors.php, on line 44:
I've tried several different ways to remove it, but nothing works.
I've tried adding a
remove_action
hook in init, like this:I've also tried instantiating the CoAuthors_Guest_Authors class and removing the parse_request action on plugins_loaded like this:
Got any tips?