Here are a few podcast recommendations:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wpcf7_before_send_mail', 'capture_entry' ); | |
function capture_entry( $cf7 ) { | |
$posted_fields = array(); | |
$submission = WPCF7_Submission::get_instance(); | |
$posted_data_raw = $submission->get_posted_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'widget_cache_register_bump' ); | |
function widget_cache_register_bump() { | |
// Invalidate widget cache during these action calls | |
$purge_actions = array( | |
'clean_post_cache', | |
'edit_term', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU Make 3.81 | |
Copyright (C) 2006 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. | |
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A | |
PARTICULAR PURPOSE. | |
This program built for x86_64-pc-linux-gnu | |
Reading makefiles... | |
Reading makefile `Makefile'... | |
Updating makefiles.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$html = file_get_contents( 'http://example.com' ); | |
preg_match_all( '/https?:\/\/(?:www.)?twitter.com\/#?([a-zA-Z0-9_]+)\/?(?![\/a-z]+)/i', $html, $maybe_twitters ); | |
if ( ! empty( $maybe_twitters[1] ) ) { | |
printf( 'Found %s', $maybe_twitters[1][0] ); | |
} else { | |
print( 'Nothing found!' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Prepend the current branch name to every commit message. | |
# Prepend the parent issue from JIRA, if found. | |
# | |
# Save this to .git/hooks/prepare-commit-msg and make it exacutable: | |
# chmod +x .git/hooks/prepare-commit-msg | |
# | |
# Extract the current working branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wpcf7_before_send_mail', function( $cf7 ) { | |
// Disable form submission for form ID 123 | |
if ( 123 == $cf7->id() ) { | |
remove_action( 'wpcf7_before_send_mail', array( cf7_storage::instance(), 'storage_capture' ) ); | |
} | |
}, 5, 1 ); |
OlderNewer