# subscription/1.5.1/includes/Admin/Links.php

Subscriptions for WooCommerce with Stripe Recurring Payments, version 1.5.1. 35 lines.

- Page: https://pluginprobe.com/plugins/subscription/1.5.1/code/includes/Admin/Links.php
- Raw: https://pluginprobe.com/plugins/subscription/1.5.1/raw/includes/Admin/Links.php
- Modified: 2025-07-08T17:04:52+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/subscription/1.5.1/code/includes/Admin/Links.php#L10-L20`.

```php
<?php

namespace SpringDevs\Subscription\Admin;

/**
 * Plugin action links
 *
 * Class Links
 *
 * @package SpringDevs\Subscription\Admin
 */
class Links {

	/**
	 * Initialize the class
	 */
	public function __construct() {
		add_filter( 'plugin_action_links_' . plugin_basename( WP_SUBSCRIPTION_FILE ), array( $this, 'plugin_action_links' ) );
	}

	/**
	 * Add plugin action links
	 *
	 * @param array $links Plugin Links.
	 */
	public function plugin_action_links( $links ) {
		if ( ! subscrpt_pro_activated() ) {
			$links[] = '<a href="https://wpsubscription.co" target="_blank" style="color:#3db634;">' . __( 'Upgrade to premium', 'wp_subscription' ) . '</a>';
		}
		$links[] = '<a href="https://wordpress.org/support/plugin/subscription" target="_blank">' . __( 'Support', 'wp_subscription' ) . '</a>';
		$links[] = '<a href="https://wordpress.org/support/plugin/subscription/reviews/?rate=5#new-post" target="_blank">' . __( 'Review', 'wp_subscription' ) . '</a>';
		return $links;
	}
}

```
