Automator_Load::uo_automator_upgrade_to_pro_link( array $links )

Callback function to plugin_action_links_{$path} to add our ‘Upgrade to Pro’ link.


Parameters Parameters

$links

(array) (Required) The accepted argument.


Top ↑

Return Return

(array) The links.


Source Source

File: src/class-automator-load.php

	public function uo_automator_upgrade_to_pro_link( $links ) {

		// Check if Automator Pro is not active.
		if ( ! defined( 'AUTOMATOR_PRO_FILE' ) ) {

			$link = 'https://automatorplugin.com/pricing/?utm_source=uncanny_automator&utm_medium=plugins_page&utm_content=update_to_pro';

			$settings_link = sprintf( '<a href="%s" target="_blank" style="font-weight: bold;">%s</a>', $link, __( 'Upgrade to Pro', 'uncanny-learndash-toolkit' ) );

			array_unshift( $links, $settings_link );

		}

		return $links;

	}