"0", "txtar_log" => ""); update_option('gc_al_options', $arr); } } // Delete options table entries only when plugin deactivated AND deleted function gc_al_delete_plugin_options() { delete_option('gc_al_options'); delete_option('gc_al_admin_log'); } // Use the Settings API for our Plugin options function gc_al_init(){ register_setting( 'gc_al_plugin_options', 'gc_al_options' ); } // Add menu page function gc_al_add_options_page() { add_options_page('Admin Log Options Page', 'Admin Log', 'manage_options', __FILE__, 'gc_al_render_form'); } // Draw the menu page itself function gc_al_render_form() { ?>

Admin Log

Admin log erased!

Approx. word count: (readonly)

Admin Log Options


The Admin Log page will be included in the log by default. This can inflate the log which may be undesirable.

     

user_login.', '.$user->first_name.' '.$user->last_name.') => '.$url[1]."\r\n"; $txt = $log.$txt; update_option('gc_al_admin_log', $txt); } } } } ?>