Removing the action is really what I intended as I’m not replacing the title. changing my last line to this works for what I was intending.
remove_action( ‘wp_head’, ‘_wp_render_title_tag’, 1 );
Removing the action is really what I intended as I’m not replacing the title. changing my last line to this works for what I was intending.
remove_action( ‘wp_head’, ‘_wp_render_title_tag’, 1 );