Skip to content

Instantly share code, notes, and snippets.

View emarket-design's full-sized avatar

eMarket Design emarket-design

View GitHub Profile
@emarket-design
emarket-design / gist:ada0cc7d7b68c438c6a3b26903420f92
Created October 14, 2016 19:33
WP Easy Events Pro WordPress plugin - All events in Miami Downtown requiring RSVP to attend with Free ticket option
[wpee_all_event_grid filter="attr::emd_event_min_cost::is::0;attr::emd_event_registration_type::is::rsvp;"]
@emarket-design
emarket-design / gist:6a227f3f6a11998e17fe3d4fc9b8d0f0
Created October 14, 2016 19:31
WP Easy Events Pro WordPress plugin - All paid events in Miami Downtown
[wpee_all_event_grid filter="attr::emd_event_min_cost::greater_than::0;tax::wpee_event_tag::is::miami-downtown;"]
@emarket-design
emarket-design / gist:9d8364424d7d027fb0e23668384a5045
Created October 14, 2016 19:27
WP Easy Events Pro WordPress plugin - Ongoing events in Miami Downtown
[wpee_ongoing_event_grid filter="tax::wpee_event_tag::is::miami-downtown;"]
@emarket-design
emarket-design / gist:11213a4ba836c8bc5735a71681277121
Last active September 6, 2016 15:35
How to show employees in the list grid format in alphabetical order by first name in Employee Directory WordPress plugin
// The following shortcode displays employees in alphabetical order using list grid view in Employee Directory WordPress plugin
[employee_circle_grid filter="misc::orderby::is::title;misc::order::is::ASC;"]
@emarket-design
emarket-design / gist:c38317ca9568586ebd26862dfb8b26a7
Created September 2, 2016 02:23
Using upload_mimes filter to upload files with non standard extensions.
add_filter('upload_mimes', 'my_upload_types');
function my_upload_types($existing_mimes=array()){
$existing_mimes['wpas'] = 'wpas';
return $existing_mimes;
}
@emarket-design
emarket-design / gist:74a41a2ba0d345a75f8c3a845b9104cd
Created August 31, 2016 04:15
Chaging colors of node background and titles
div.emd-container .orgchart .node.finance .title {
background-color: #006699;
}
div.emd-container .orgchart .node.finance .content {
border-color: #006699;
}
div.emd-container .orgchart .node.marketing .title {
background-color: #009933;
}
div.emd-container .orgchart .node.marketing .content {
@emarket-design
emarket-design / gist:e634e459ebb954816a4ac9e14f90992d
Last active May 13, 2016 14:58
WP Ticket Pro WordPress Plugin Dashboard
<div class="row">
<div class="col-md-12">
<div class="dashboard padder10">
[ic_ticket_infocircle]
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="dashboard padder10">
!#custom-attr['<div class="grid grid-pad cust-field"><span><strong>',': </strong></span><span>','</span></div>']#
@emarket-design
emarket-design / gist:7bba876a0f2988832d333956f45a572f
Last active April 1, 2016 17:23
How to get all order ids of a customer in WooCommerce
if(is_user_logged_in()){
$cust_orders = get_posts( array(
'numberposts' => -1,
'meta_key' => '_customer_user',
'meta_value' => get_current_user_id(),
'fields' => 'ids',
'post_type' => wc_get_order_types(),
'post_status' => array_keys( wc_get_order_statuses() ),
'orderby' => 'date',
'order' => 'DESC'
@emarket-design
emarket-design / gist:0aab7f96bd1cdc70b38b
Created March 21, 2016 15:58
Removing specific fields from the employee bio page, details tab through CSS in Employee Directory Pro WordPress plugin.
/* For example, if you need to remove the language, skill, certification, employment type, gender and Marriage Status fields from the details tab.
*/
#tax-languages,
#tax-skills,
#tax-certifications,
#tax-employment-type,
#tax-gender,
#tax-marital-status{display:none;}