Skip to content

Instantly share code, notes, and snippets.

View adamsimonini's full-sized avatar
🏠
Working from home

Adam Simonini adamsimonini

🏠
Working from home
View GitHub Profile
@swalkinshaw
swalkinshaw / gist:2695510
Created May 14, 2012 18:25
WordPress: Mandatory Excerpt
<?
function mandatory_excerpt($data) {
$excerpt = $data['post_excerpt'];
if (empty($excerpt)) {
if ($data['post_status'] === 'publish') {
add_filter('redirect_post_location', 'excerpt_error_message_redirect', '99');
}
@bradtraversy
bradtraversy / mongodb_cheat_sheet.md
Last active November 17, 2024 10:01
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database