public function pluginYoast($settings)
    {
        if (empty($settings) || !defined('WPSEO_VERSION')) {
            return;
        }

        $available = [
            'remove_breadcrumbs_duplicates', 'remove_comment', 'remove_meta_box',
        ];

        // Special case
        if (is_bool($settings) && $settings) {
            $settings = $available;
        }

        foreach ($settings as $key) {
            if (!in_array($key, $available)) {
                continue;
            }

            if ('remove_breadcrumbs_duplicates' === $key) {
                add_filter('wpseo_breadcrumb_single_link', function ($link) {
                    return false !== strpos($link, 'breadcrumb_last') ? '' : $link;
                });

                continue;
            }

            if ('remove_comment' === $key && !OL_ZEUS_ISADMIN) {
                add_action('get_header', function () {
                    ob_start(function ($html) {
                        return preg_replace('/^\n?\<\!\-\-.*?[Y]oast.*?\-\-\>\n?$/mi', '', $html);
                    });
                });

                add_action('wp_head', function () {
                    ob_end_flush();
                }, 999);

                continue;
            }

            if ('remove_meta_box' === $key && OL_ZEUS_ISADMIN) {
                add_action('wp_dashboard_setup', function () {
                    remove_meta_box('wpseo-dashboard-overview', 'dashboard', 'normal');
                });

                continue;
            }
        }
    }