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 | |
// Correct way to use "is_read" and/or "is_starred" with GFAPI::get_entries | |
$search_criteria = array( | |
'status' => 'active', | |
'field_filters' => array( | |
'mode' => 'all', | |
array( | |
'key' => '8', | |
'value' => 'abc', |
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 | |
/** | |
* Debug helper, place near the top of your functions.php | |
* Use with write_log($var) to write $var contents into debug.log | |
*/ | |
function write_log( $data ) { | |
if ( true === WP_DEBUG ) { | |
if ( is_array( $data ) || is_object( $data ) ) { | |
error_log( print_r( $data, true ) ); | |
} else { |