public function headerWpHead($key)
    {
        if (in_array($key, ['parent_post_rel_link', 'start_post_rel_link'])) {
            remove_action('wp_head', $key, 10, 0);
        } else if ('wp_resource_hints' === $key) {
            remove_action('wp_head', $key, 2);
        } else {
            remove_action('wp_head', $key);
        }
    }
public function headerWpHead($key)
    {
        if (in_array($key, ['parent_post_rel_link', 'start_post_rel_link'])) {
            remove_action('wp_head', $key, 10, 0);
        } else if ('wp_resource_hints' === $key) {
            remove_action('wp_head', $key, 2);
        } else {
            remove_action('wp_head', $key);
        }
    }
public function headerWpHead ( $ key ) { if ( in_array ( $ key , [ 'parent_post_rel_link' , 'start_post_rel_link' ] ) ) { remove_action ( 'wp_head' , $ key , 10 , 0 ) ; } else if ( 'wp_resource_hints' === $ key ) { remove_action ( 'wp_head' , $ key , 2 ) ; } else { remove_action ( 'wp_head' , $ key ) ; } }
Remove the next and previous post links from the header

@param string $key
Remove the next and previous post links from the header