Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function log_it( $logme ) {
$log = WP_CONTENT_DIR . '/log_it.log';
$existing = file_get_contents( $log );
file_put_contents( $log, $existing . "\n" . print_r( $logme, true ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.