Skip to content

Instantly share code, notes, and snippets.

View aldenweaver's full-sized avatar
:octocat:
<Code/>

Alden Weaver aldenweaver

:octocat:
<Code/>
View GitHub Profile
@wpmudev-sls
wpmudev-sls / forminator-populate-hidden-fields.php
Created October 15, 2019 14:49
[Forminator] - Auto Populate Hidden Fields. Adds a new option in Hidden's Edit Field popup under the Advanced tab. From there you can choose to use the Custom Value of the hidden field as the query var of the url, of which value we want
<?php
/**
* Plugin Name: [Forminator] - Auto Populate Hidden Fields
* Plugin URI: https://premium.wpmudev.org/
* Description: Adds a new option in Hidden's Edit Field popup under the Advanced tab. From there you can choose to use the Custom Value of the hidden field as the query var of the url, of which value we want
* Author: Panos Lyrakis @ WPMUDEV
* Author URI: https://premium.wpmudev.org/
* License: GPLv2 or later
*/
@mweststrate
mweststrate / mobx-webcomponent.html
Last active January 22, 2024 08:25
MobX + webcomponents
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/mobx@2.6.0/lib/mobx.umd.js"></script>
<script>
var MobxDemo = Object.create(HTMLElement.prototype);
MobxDemo.attachedCallback = function() {
var state = mobx.observable({
counter : parseInt(this.getAttribute("counter"))
})