', '', '
'); printf('

%1$s

', wp_kses_post($message)); } add_action('admin_notices', 'AFTC_old_php_admin_error_notice'); } else { // Current version of the plugin. define('AFTC_VERSION', '3.3.0'); // Path/URL to root of this plugin, with trailing slash. define('AFTC_PATH', plugin_dir_path(__FILE__)); define('AFTC_URL', plugin_dir_url(__FILE__)); // Require main plugin file. require AFTC_PATH . 'inc/class-aftc-main.php'; require AFTC_PATH . 'inc/class-aftc-menu.php'; /** * Freemius. */ require_once(AFTC_PATH . '/freemius.php'); // Instantiate the main plugin class *Singleton*. $AF_Companion = AF_Companion::getInstance(); $Af_companion_Menu = Af_companion_Menu::getInstance($AF_Companion); } /** * Add High-Demand Quick-Access Links and Pro Highlights to the Plugin Dashboard */ add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'af_companion_action_links'); function af_companion_action_links($links) { // 1. Speed Booster (High Frequency Performance Feature) $speed_link = '' . esc_html__('Speed Booster', 'af-companion') . ''; // 2. AI Settings (Core GEO / AIO Engine Configuration) $ai_link = '' . esc_html__('AI Settings', 'af-companion') . ''; // 3. Alt Text Manager (Accessibility & Image SEO) $alt_link = '' . esc_html__('Alt Text Manager', 'af-companion') . ''; // 4. Database Maintenance (Storage & Safety) $db_link = '' . esc_html__('Database Cleaner', 'af-companion') . ''; // 5. Upgrade / Pro Link (High-Contrast Emerald Highlight for Conversions) $pro_link = '' . esc_html__('Go Pro 🚀', 'af-companion') . ''; // Prepend high-demand module links right next to default Deactivate/Edit links $custom_links = array( 'speed' => $speed_link, 'ai' => $ai_link, 'alt' => $alt_link, 'db' => $db_link, 'pro' => $pro_link, ); return array_merge($custom_links, $links); }