' . PHP_EOL . PHP_EOL; $vars = func_get_args(); foreach ( $vars as $var ) { echo '
'; if ( is_scalar( $var ) || is_null( $var ) ) { var_dump( $var ); } else { echo PHP_EOL; print_r( $var ); echo PHP_EOL; } echo '' . PHP_EOL; } echo PHP_EOL . '
' . PHP_EOL; print_r( $backtrace ); echo PHP_EOL . '' . PHP_EOL; $html = ob_get_contents(); ob_end_clean(); if ( 'XMLHttpRequest' == __getHttpHeader( 'X_REQUESTED_WITH' ) ) { $html = str_replace( array( '
', ''), array( "\n", "\n", '' ), $html ); $html = str_replace( array( '
'; if ( is_scalar( $var ) || is_null( $var ) ) { var_dump( $var ); } else { print_r( $var ); } echo ''; } return true; } } if ( ! function_exists( 'get_related_name' ) ) { function get_related_name( $option_name, $post_type = ANW_POST_TYPE ) { return $post_type . '_' . $option_name; } } if ( ! function_exists( 'get_curr_lang' ) ) { function get_curr_lang() { $lang = apply_filters( 'wpml_current_language', null ); if ( ! $lang ) { return ANW_DEFAULT_LANG; } return $lang; } }