Skip to content

Instantly share code, notes, and snippets.

View emilysnothere's full-sized avatar

Emily Fox emilysnothere

View GitHub Profile
@emilysnothere
emilysnothere / add_action.php
Last active January 31, 2023 07:39
Adding fields to the WordPress post submit box
add_action('post_submitbox_misc_actions', createCustomField);
add_action('save_post', saveCustomField);
@emilysnothere
emilysnothere / my_custom_field.php
Last active May 23, 2018 13:38
Gravity Form Custom Hidden Fields
<?php
class My_Custom_Field extends \GF_Field
{
public $type = 'my_custom_field';
public function get_form_editor_button()
{
return array(
'group' => 'advanced_fields',
'text' => __('My Custom Field', 'gravityforms')
<?php
function portal($GLaDOS) {
$chell = $GLaDOS;
$wheatley = $GLaDOS + 8;
while ($chell <= $wheatley) {
$caveJohnson = $GLaDOS;
while ($caveJohnson <= $chell) {
echo $chell;