Skip to content

Instantly share code, notes, and snippets.

View seba2305's full-sized avatar
🎯
Focusing

Sebastian Vega seba2305

🎯
Focusing
  • Santiago, Chile
View GitHub Profile
@stephenscaff
stephenscaff / NoConcurrentSessions.php
Created July 3, 2018 20:06
Prevent Concurrent Sessions in Wordpress, leveraging WP_Session_Tokens and wp_destroy_other_sessions() / wp_destroy_current_sessions().
/**
* No Current Sessions
* Simple class to prevent concurrent user sessions.
*/
class NoConcurrentSessions {
function __construct() {
add_action( 'init', array( $this, 'only_one' ) );
}
@juanbrujo
juanbrujo / comunas-regiones.json
Last active June 3, 2024 16:31 — forked from sergiohidalgo/comunas-regiones-chile.json
Comunas y regiones de chile JSON
{
"regiones": [
{
"region": "Arica y Parinacota",
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"]
},
{
"region": "Tarapacá",
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"]
},