get_instance_hash_key example

empty( $value['instance_hash_key'] ) ||
            empty( $value['encoded_serialized_instance'] )
        ) {
            return;
        }

        $decoded = base64_decode( $value['encoded_serialized_instance'], true );
        if ( false === $decoded ) {
            return;
        }

        if ( ! hash_equals( $this->get_instance_hash_key( $decoded )$value['instance_hash_key'] ) ) {
            return;
        }

        $instance = unserialize( $decoded );
        if ( false === $instance ) {
            return;
        }

        return $instance;
    }

    
Home | Imprint | This part of the site doesn't use cookies.