Skip to content

Instantly share code, notes, and snippets.

add_filter(frm_setup_new_fields_vars, frm_populate_member, 20, 2);
add_filter(frm_setup_edit_fields_vars, frm_populate_member, 20, 2); //use this function on edit too
function frm_populate_member($values, $field){
if($field->id == 732 || $field->id == 733){ //replace 732 and 733 with the IDs of the fields to populate
global $wpdb;
//the Query
$the_Result = $wpdb->get_results( "SELECT concat_ws(', ', last_name, first_name) as display_name FROM wp_database.wp_wp_eMember_members_tbl where account_state = 'active' order by last_name, first_name;" );
unset($values['options']); //break the binding of any existing content in the values array
/*!
* Bootstrap Reboot v4.1.3 (https://getbootstrap.com/)
* Copyright 2011-2018 The Bootstrap Authors
* Copyright 2011-2018 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
#contact-image-content .thumb-lg {
width: 150px;
}
#contacts-grid-view-model-list .pull-left a {
margin-bottom: 5px;
}
#contacts-grid-view-model-list .thumb-sm {
margin-bottom: 4px;
#contact-image-content .thumb-lg {
width: 150px;
}
#contacts-grid-view-model-list .pull-left a {
margin-bottom: 5px;
}
#contacts-grid-view-model-list .thumb-sm {
margin-bottom: 4px;
{
"_id": "14ef335ea4a0",
"creation_date": "2018-03-23T20:28:21.458Z",
"job": "Senior Integration Specialist",
"job_location": "JLL - Chicago, IL",
"start_date" : "2019-03-23T20:28:27.153Z",
"first_name": "Bob",
"last_name": "Smith",
"email_address": "ramprasad1718@gmail.com",
"phone_number": "3522176711",
@bryanwillis
bryanwillis / agile-crm.css
Created March 25, 2018 22:00
Enhance agile crm profile cards
#contact-image-content .thumb-lg {
width: 150px;
}
#contacts-grid-view-model-list .pull-left a {
margin-bottom: 5px;
}
#contacts-grid-view-model-list .thumb-sm {
margin-bottom: 4px;
nothing
@bryanwillis
bryanwillis / fox-valley.html
Last active March 7, 2019 11:27
HTML 5 upgrade for Fox Valley Containers with SEO SERP metadata added to head
<!doctype html>
<head>
<html class="no-js" lang="en">
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Length between 50-60 characters -->
<title itemprop='name'>Distributor of metal &nbsp; plastic containers | Fox Valley Containers</title>
<!-- Shorten length between 155-165 character -->
<meta name="description" content="Premier distributors of metal and plastic containers for reliable packaging of paint, chemicals, adhesives, food, coatings, inks and pharmaceuticals located in the upper midwest with locations in Illinois, Michigan, and Minnesota. Suppliers of paint cans, glass bottles and plastic bottles, pails, closures, drums and overpacks.">
<meta name="viewport" content="width=device-width, initial-scale=1">