Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Automator_Load::uo_automator_upgrade_to_pro_link( array $links )
Callback function to plugin_action_links_{$path}
to add our ‘Upgrade to Pro’ link.
Contents
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Parameters Parameters
- $links
(Required) The accepted argument.
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; }
Expand full source code Collapse full source code View on Github