* @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ * @link https://github.com/boogah/biscotti * * @wordpress-plugin * Plugin Name: Biscotti * Plugin URI: https://github.com/boogah/biscotti * Description: Biscotti makes your user's login cookie a little bit longer. * Version: 2.0.0 * Author: Jason Cosper * Author URI: https://jasoncosper.com/ * License: GPL-2.0+ * License URI: https://www.gnu.org/licenses/gpl-2.0.txt */ // If this file is called directly, abort. if (! defined('WPINC') ) { die; } // Add a dropdown menu to the user profile page that allows you to choose the login cookie's expiration date. function biscotti_login_cookie_expiration_form_fields( $user ) { $expiration_options = array( '3 months' => '3 months', '6 months' => '6 months', '1 year' => '1 year', ); $selected_expiration = get_the_author_meta('biscotti_login_cookie_expiration', $user->ID); ?>
Choose your login cookie's expiration date. |