PluginProbe
MultiSafepay plugin for WooCommerce / trunk
MultiSafepay plugin for WooCommerce vtrunk
6.11.1 6.12.0 6.13.0 6.2.0 6.2.1 6.3.0 6.3.1 6.4.0 6.4.1 6.4.2 6.4.3 6.5.0 6.5.1 6.6.0 6.6.1 6.6.2 6.7.0 6.7.1 6.7.2 6.7.3 6.8.0 6.8.1 6.8.2 6.8.3 6.9.0 All 84 releases
multisafepay / src / Utils / CustomLinks.php

CustomLinks.php in MultiSafepay plugin for WooCommerce trunk, at src/Utils/CustomLinks.php

26 lines 849 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace MultiSafepay\WooCommerce\Utils;
4
5 /**
6 * This class defines the custom links added to the WordPress plugin list for this plugin
7 */
8 class CustomLinks {
9
10 /**
11 * Filter and add links to the WordPress plugin list
12 *
13 * @see https://developer.wordpress.org/reference/hooks/plugin_action_links_plugin_file/
14 *
15 * @param array $links
16 * @return array
17 */
18 public function get_links( array $links ): array {
19 $custom_links = array(
20 '<a href="' . admin_url( 'admin.php?page=multisafepay-settings' ) . '">' . __( 'Settings', 'multisafepay' ) . '</a>',
21 '<a target="_blank" href="https://docs.multisafepay.com/docs/woocommerce">' . __( 'Docs & Support', 'multisafepay' ) . '</a>',
22 );
23 return array_merge( $custom_links, $links );
24 }
25 }
26