Skip to content

Instantly share code, notes, and snippets.

View aldoreyes's full-sized avatar
🚴‍♂️

Arnoldo Reyes aldoreyes

🚴‍♂️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aldoreyes on github.
  • I am aldo_reyes (https://keybase.io/aldo_reyes) on keybase.
  • I have a public key ASBPLKQQChI2_tqCoKyHtAV1bJSnBPOh35gseKlCB2Ht6Qo

To claim this, I am signing this object:

@aldoreyes
aldoreyes / ga_views.js
Last active April 10, 2019 14:15
Get views from google analytics dropdown in admin console (this is meant to be used in the browser console)
//replace #menu_container_191 by your menu id
jQuery('#menu_container_191 md-menu-item .ng-scope').each(function(){
console.log($(this).text());
});
@aldoreyes
aldoreyes / wp_salesforce_add_attachments.php
Last active February 15, 2017 16:40
Snippet to add attachments to a salesforce object that is created through the salesforce plugin for gravityforms by @katzwebservices
add_action("gform_after_submission", 'sf_add_attachments', 11, 2);
/**
* This will go through all your fileupload fields from the form,
* and it will create an attachment for each one of the that is not empty
* @param [type] $entry [description]
* @param [type] $form [description]
*/
function sf_add_attachments($entry, $form){
$parentID = gform_get_meta($entry['id'], 'salesforce_id');