Prune_Logs::add_pro_auto_prune_settings()
Add a tease of the auto prune tool available in Pro
Source
File: src/core/admin/class-prune-logs.php
public function add_pro_auto_prune_settings() { // Check if the user has Automator Free // Don't add it if Pro is active if ( ! is_automator_pro_active() ) { // Get the link to upgrade to Pro $upgrade_to_pro_url = add_query_arg( // UTM array( 'utm_source' => 'uncanny_automator', 'utm_medium' => 'settings', 'utm_content' => 'auto_prune_tease' ), 'https://automatorplugin.com/pricing/' ); // Load the view include Utilities::automator_get_view( 'admin-settings/tab/general/logs/auto-prune-logs-tease.php' ); } }
Expand full source code Collapse full source code View on Github