# multisafepay/trunk/src/Utils/CustomLinks.php

MultiSafepay plugin for WooCommerce, version trunk. 26 lines.

- Page: https://pluginprobe.com/plugins/multisafepay/trunk/code/src/Utils/CustomLinks.php
- Raw: https://pluginprobe.com/plugins/multisafepay/trunk/raw/src/Utils/CustomLinks.php
- Modified: 2023-10-04T09:34:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/multisafepay/trunk/code/src/Utils/CustomLinks.php#L10-L20`.

```php
<?php declare(strict_types=1);

namespace MultiSafepay\WooCommerce\Utils;

/**
 * This class defines the custom links added to the WordPress plugin list for this plugin
 */
class CustomLinks {

    /**
     * Filter and add links to the WordPress plugin list
     *
     * @see https://developer.wordpress.org/reference/hooks/plugin_action_links_plugin_file/
     *
     * @param array $links
     * @return array
     */
    public function get_links( array $links ): array {
        $custom_links = array(
            '<a href="' . admin_url( 'admin.php?page=multisafepay-settings' ) . '">' . __( 'Settings', 'multisafepay' ) . '</a>',
            '<a target="_blank" href="https://docs.multisafepay.com/docs/woocommerce">' . __( 'Docs & Support', 'multisafepay' ) . '</a>',
        );
        return array_merge( $custom_links, $links );
    }
}

```
