Categories
WordPress

Force WordPress to remember you for a longer period of time than 14 days

A co-worker asked if it was possible to ask WordPress to keep an active session longer than one day or 14 days if you click the “Remember Me.”

Which brought to a post on WordPress Development Stack Exchange where Alex Mills ( Viper007Bond) had solved this problem a year ago. This serves as a reminder of how important he was to the WordPress community. I frequently stumble upon his answers and no longer have the opportunity to thank him for taking the time.

// Extends user session to one year
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' );

function keep_me_logged_in_for_1_year( $expirein ) {
    return 31556926; // 1 year in seconds
}

I find the code hilarious in that it would extend period for a year which is clearly excessive. I’m sure he meant that as a joke. 😀

Categories
WordPress

WordPress Site Health Zen Achieved

One of the advantages of using a service like Digital Ocean to host a site is that I can micro manage every detail personally. This is the reward. The most difficult part was finding documentation for pointing PHP to use 7.3 instead of 7.2.

I found the answer on this blog post.

The other task was activating a PHP module and I found that answer over at SiteGround.


Current Status
  • Listening to: "Never You Done That" by General Public
Categories
WordPress

The Independent Web

slide form presentation
David Bowie launched an album on his website in 1999.

Stop Scrolling Facebook

Tantek Çelik

This talk appeared during the live stream at WordCamp US 2019 in room 240. It was fantastic to see so many of my friends mentioned as examples of the power of an open web. David Wolfpaw, Bridget Willard, Chris Aldrich, and Chris Wiegman all as examples of the power of independent websites to share their voice beyond the typical social media platforms 😀

Common themes discussed were the proprietary control Facebook and other platforms have on curating our voice and content, how it can be fed or hidden from our audience, friends, co-workers clients without our control.


Current Status
  • Listening to: Tantek Çelik talk about the Independent Web