Skip to content

Instantly share code, notes, and snippets.

View htdat's full-sized avatar

Dat Hoang htdat

View GitHub Profile
@htdat
htdat / code.php
Last active October 26, 2017 09:49
WPJM Applicants - Route all employer notification emails to a specific email. (https://wpjobmanager.com/document/applications/)
add_filter('create_job_application_notification_recipient', 'htdat_create_job_application_notification_recipient', 10, 3);
function htdat_create_job_application_notification_recipient ($send_to, $job_id, $application_id){
$send_to = 'all@email.local';
return $send_to;
}
@htdat
htdat / disable-whatsapp-desktop.css
Created August 31, 2017 10:08
disable-whatsapp-desktop.css
@media screen and (min-width: 900px) {
.share-jetpack-whatsapp {
display: none !important;
}
}
@htdat
htdat / del_fb_group_pending_posts.js
Created March 4, 2017 15:39
Delete FB group pending posts for admins
/**
* Please use this file at your own risk. I don't provide the support for it.
* Any suggestion or problem are welcomed to report here :)
*/
/**
* Usage:
* 1. Log-in as an group admin in the desktop
* 2. Go to your group pending list like: https://www.facebook.com/groups/[group-id]/pending/
* 3. Insert the following code to your browser console. See the guide: https://developer.chrome.com/devtools/docs/console