This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('post_submitbox_misc_actions', createCustomField); | |
add_action('save_post', saveCustomField); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function portal($GLaDOS) { | |
$chell = $GLaDOS; | |
$wheatley = $GLaDOS + 8; | |
while ($chell <= $wheatley) { | |
$caveJohnson = $GLaDOS; | |
while ($caveJohnson <= $chell) { | |
echo $chell; |