' . 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 . '
BACKTRACE
' . PHP_EOL; array_shift( $backtrace ); function _removeObjects( &$array ) { foreach ( $array as $key => &$value ) { if ( is_array( $value ) ) { _removeObjects( $value ); } elseif ( is_object( $value ) ) { unset( $array[$key] ); $array[$key] = get_class( $value ) . ' Object'; } } } _removeObjects( $backtrace ); 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( '
' ), "\n" . str_repeat( '-', 80 ) . "\n", $html ); } echo str_replace( "\n", '', $html ); exit(); } } if ( ! function_exists( 'vlive' ) ) { function vlive() { $vars = func_get_args(); foreach ( $vars as $var ) { echo '
';
            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 ); } }