?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/cryptoimpot.fr/wp-content/plugins/divi-contact-form-helper/app/Base/



?? Go up: /home/webdevt/www/cryptoimpot.fr/wp-content/plugins/divi-contact-form-helper/app

?? Viewing: Plugin_Config.php

<?php

namespace KS_PAC_DCFH\Base;

if (!defined('ABSPATH')) {
    exit;
}

class Plugin_Config
{

    public function init(): void
    {
        add_action('init', [$this, 'maybe_translation_ready']);
        add_filter('plugin_action_links', [$this, 'maybe_action_links'], 10, 2);
        add_filter('plugin_row_meta', [$this, 'maybe_plugin_row_meta'], 10, 4);
    }

    public function maybe_translation_ready(): void
    {
        load_plugin_textdomain(
            'divi-contact-form-helper',
            false,
            dirname(KS_PAC_DCFH_PLUGIN_BASENAME).'/languages/'
        );
    }

    public function maybe_action_links($links, $file)
    {
        if (KS_PAC_DCFH_PLUGIN_BASENAME !== $file) {
            return $links;
        }
        $url = admin_url("admin.php?page=".ks_pac_dcfh_wp_helper()::get_divi_setting_slug()."#wrap-pwh-dcfh-epanel");
        /* translators: 1: URL to page, 2: Link Title. */
        $settings_link = sprintf('<a href="%1$s">%2$s</a>', $url, __('Settings', 'divi-contact-form-helper'));
        array_unshift($links, $settings_link);

        return $links;
    }

    public function maybe_plugin_row_meta($plugin_meta, $plugin_file, $plugin_data, $status)
    {
        if (KS_PAC_DCFH_PLUGIN_BASENAME !== $plugin_file) {
            return $plugin_meta;
        }
        $plugin_meta ['ks_pac_dcfh_doc_support'] = sprintf('<a href="%1$s" target="_blank">%2$s</a>', esc_url('https://www.peeayecreative.com/docs/divi-contact-form-helper/'), __('Documentation & Support', 'divi-contact-form-helper'));

        return $plugin_meta;
    }
}


??

??