/** * Admin init * * @return void */ function admin_init() { if (function_exists('ats_register_plugin')) { // plugin registration ats_register_plugin('w3-total-cache', W3TC_FILE); // enable tickets module ats_enable_tickets('w3-total-cache', array('custom_fields' => array(__('SSH / FTP host', 'w3-total-cache'), __('SSH / FTP login', 'w3-total-cache'), __('SSH / FTP password', 'w3-total-cache')))); } // special handling for deactivation link, it's plugins.php file if (W3_Request::get_string('action') == 'w3tc_deactivate_plugin') { $this->action_deactivate_plugin(); } }
/** * Admin init * * @return void */ function admin_init() { if (function_exists('ats_register_plugin')) { // plugin registration ats_register_plugin('w3-total-cache', W3TC_FILE); // enable tickets module ats_enable_tickets('w3-total-cache', array('custom_fields' => array('SSH / FTP host', 'SSH / FTP login', 'SSH / FTP password'))); } }