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
function modify_gform_save_form_button( $save_button ) { | |
if ( current_user_can('manage_options')) { | |
return $save_button; | |
} | |
} | |
add_filter('gform_save_form_button', 'modify_gform_save_form_button'); |
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
function modify_gform_notes_avatar( $note_avatar, $note ) { | |
$note_avatar = get_avatar( $note->user_id, 38 ); | |
return $note_avatar; | |
} | |
add_filter('gform_notes_avatar', 'modify_gform_notes_avatar', 10, 2); |
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
function modify_gform_new_form_button() { | |
return '<input id="save_new_form" type="button" class="button button-large button-primary my-custom-button-class" value="' . esc_html__( 'Build a Form', 'gravityforms' ) . '" onclick="saveNewForm();" tabindex="9002" />'; | |
} | |
add_filter('gform_new_form_button', 'modify_gform_new_form_button'); |
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 | |
/** | |
* Plugin Name: Gravity Forms for Admin Pages | |
* Description: Show a Gravity Form on an admin page. | |
* Author: Nikhil Vimal | |
* Author URI: http://nik.techvoltz.com | |
* Version: 1.0 | |
* License: GNU GPLv2+ | |
*/ |
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 | |
/** | |
* Plugin Name: EDD Graph Dashboard Widget | |
* Description: | |
* Author: Nikhil Vimal | |
* Author URI: http://nik.techvoltz.com | |
* Version: 1.0 | |
* Plugin URI: | |
* License: GNU GPLv2+ | |
*/ |
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
function modify_gform_save_form_button() { | |
return '<input type="button" class="button button-large button-primary update-form my-button-class" value="' . $button_text . '" onclick="SaveForm(' . $isNew . ');" />';; | |
} | |
add_filter('gform_save_form_button', 'modify_gform_save_form_button'); |
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
function modify_gfroms_trash_link() { | |
return '<button style="background: red; color: white; border: none;" class="submitdelete" title="' . __( 'Move this form to the trash', 'gravityforms' ) . '" onclick="if(confirm(\'' . __( "Would you like to move this form to the trash? \'Cancel\' to stop. \'OK\' to continue", 'gravityforms' ) . '\')){ gf_vars.isFormTrash = true; jQuery(\'#form_trash\')[0].submit();} else{return false;}">' . __( 'Trash', 'gravityforms' ) . '</button>'; | |
} | |
add_filter('gform_form_trash_link', 'modify_gfroms_trash_link'); |
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
/** | |
* Fires the class when Gravity Forms has loaded | |
*/ | |
add_action('gform_loaded', array('GF_Simple_Addon_bootstrap', 'load'), 5); | |
/** | |
* Class GF_Test is our Bootstrap class, it loads a lot of the important stuff, like files | |
*/ | |
class GF_Simple_slack_bootstrap { |
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
/** | |
* Fires after a payment has been completed | |
* | |
* @param array $entry The Entry object | |
* @param array $action The Action Object | |
* $action = array( | |
* 'type' => 'cancel_subscription', // See Below | |
* 'transaction_id' => '', // What is the ID of the transaction made? | |
* 'subscription_id' => '', // What is the ID of the Subscription made? | |
* 'amount' => '0.00', // Amount to charge? |
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
/** | |
* Fires after a payment has been refunded | |
* | |
* @param array $entry The Entry object | |
* @param array $action The Action Object | |
* $action = array( | |
* 'type' => 'cancel_subscription', // See Below | |
* 'transaction_id' => '', // What is the ID of the transaction made? | |
* 'subscription_id' => '', // What is the ID of the Subscription made? | |
* 'amount' => '0.00', // Amount to charge? |