Skip to content

Instantly share code, notes, and snippets.

View ooksanen's full-sized avatar

Oskari Oksanen ooksanen

View GitHub Profile
@ooksanen
ooksanen / local-dev.php
Created September 14, 2023 09:34 — forked from richaber/local-dev.php
MU plugin to enable/disable other plugins during local development.
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
* Plugin Name: RA Local Dev Plugin
* Description: Install as an mu-plugin to enable and disable other plugins during local development.
* Version: 0.1.0
* License: GPL version 2 or any later version
* Author: Mark Jaquith, Andrey Savchenko, Paul Biron, Richard Aber
*
* Inspired by Paul Biron https://gist.github.com/pbiron/52bb63042cf220256ece89bc07fb57b0,
@ooksanen
ooksanen / programmatically-add-gravity-forms.php
Last active April 21, 2022 13:59 — forked from daankortenbach/programmatically-add-gravity-forms.php
Updated for Gravity Forms 2.6 which requires button parameter for submit to work
<?php
/*
Plugin Name: Programmatically add Gravity Forms
Plugin URI: https://daan.kortenba.ch/programmatically-add-gravity-forms/
Description: Programmatically add persistent Gravity Forms forms.
Author: Daan Kortenbach
Version: 0.1
Author URI: https://daan.kortenba.ch/
License: GPLv2 or later
*/