This file contains 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
#! /bin/bash | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="camptix-payfast-gateway" | |
CURRENTDIR=`pwd` | |
MAINFILE="camptix-payfast.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
This file contains 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_filter( 'gform_field_input', 'rw_change_radio_structure', 10, 5 ); | |
function rw_change_radio_structure($input, $field, $value, $lead_id, $form_id){ | |
$input_type = RGFormsModel::get_input_type($field); | |
if($input_type != "radio" || IS_ADMIN && RG_CURRENT_VIEW == "entry") | |
return $input; | |
$choices = ""; | |
if(is_array($field["choices"])){ | |
$choice_id = 0; |