If you want to get the data from a form created with Contact Form 7 you can use the ‘wpcf7_before_send_mail’ hook. In your functions.php or from your plugin add action like follows: add_action( ‘wpcf7_before_send_mail’, ‘my_plugin_wpcf7_before_send_mail’ ); function my_plugin_wpcf7_before_send_mail ( $contact_form ) { // TODO: get the data } Since version 3.9 Contact Form 7 removed $contact_form->posted data so… Continue reading Retrieving data from a form created with Contact Form 7
Category: Tips & Tricks 4 WP Dev
[Tips and Tricks for Writing WordPress Themes and Plugins] Forcing the browser to refresh your scripts and styles
I’m starting a some kind of thread of posts where I write down some of the nice tricks I meet in WordPress development. First one is how to write your custom theme and plugin files so after each deployment / update you’ll be sure that the browser doesn’t use the cached version of your JS and CSS.… Continue reading [Tips and Tricks for Writing WordPress Themes and Plugins] Forcing the browser to refresh your scripts and styles