false, 'key' => '', 'status' => [ 'code' => null, 'message' => null, 'expires' => null, 'domains' => null, ], ]; emodal_update_option( EMCORE_SLUG . '-license', $license ); } return $license && $key ? emresolve( $license, $key ) : $license; } } if ( ! function_exists( 'emresolve' ) ) { function emresolve( array $a, $path, $default = null ) { $current = $a; $p = strtok( $path, '.' ); while ( false !== $p ) { if ( ! isset( $current[ $p ] ) ) { return $default; } $current = $current[ $p ]; $p = strtok( '.' ); } return $current; } }