' . 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( 'sanitize_html_id' ) ) { function sanitize_html_id( $id ) { return str_replace( ['[', ']'], ['-', ''], $id ); } } if ( ! function_exists( 'esc_html_id' ) ) { function esc_html_id( $id ) { return esc_attr( sanitize_html_id( $id ) ); } } if ( ! function_exists( 'esc_html_id_e' ) ) { function esc_html_id_e($id) { echo esc_html_id($id); } } if ( ! function_exists( 'fqp_array_get' ) ) { function fqp_array_get( $array, $field, $default = null ) { $array = (array) $array; if ( false !== $field && null !== $field ) { if ( is_array( $field ) ) { $parts = $field; } else { $field = str_replace( ']', '', '' . $field ); $parts = explode( '[', $field ); } while ( null !== ( $name = array_shift( $parts ) ) ) { if ( ! is_array( $array ) || ! array_key_exists( $name, $array ) ) { return $default; } $array = $array[$name]; } } return $array; } } if ( ! function_exists( 'fqd_default ' ) ) { function fqp_default( $value, $default = '-' ) { return ( '' == $value ) ? $default : $value; } } if ( ! function_exists( 'fqp_money' ) ) { function fqp_money( $input, $decimals = 2 ) { $input = number_format( floatval( $input ), $decimals, '.', "'" ); return str_replace( '.00', '.-', $input ); } } if ( ! function_exists( 'fqp_money_currency' ) ) { function fqp_money_currency( $input, $decimals = 2 ) { $output[] = FQP\FQP::currency(); $output[] = fqp_money( $input, $decimals ); return implode( ' ', $output ); } } if ( ! function_exists( 'fqp__' ) ) { function fqp__( $text, $text_domain = \FQP\FQP::TEXT_DOMAIN ) { return __( $text, $text_domain ); } } if ( ! function_exists( 'fqp_esc_html__' ) ) { function fqp_esc_html__( $text, $text_domain = \FQP\FQP::TEXT_DOMAIN ) { return esc_html__( $text, $text_domain ); } } if ( ! function_exists( 'fqp_esc_attr__' ) ) { function fqp_esc_attr__( $text, $text_domain = \FQP\FQP::TEXT_DOMAIN ) { return esc_attr__( $text, $text_domain ); } }