Skip to content

Instantly share code, notes, and snippets.

View ooksanen's full-sized avatar

Oskari Oksanen ooksanen

View GitHub Profile
@richaber
richaber / local-dev.php
Last active September 14, 2023 09:40 — forked from pbiron/enable-disable-plugins-when-doing-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,
<?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
*/
@carlodaniele
carlodaniele / custom-queries.php
Last active January 23, 2024 01:35
An example plugin showing how to add custom query vars, rewrite tags and rewrite rules to WordPress
<?php
/**
* @package Custom_queries
* @version 1.0
*/
/*
Plugin Name: Custom queries
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin
Author: Carlo Daniele