[ERROR] dùng hàm error_log("aaaaaaaa1"); để ghi lỗi vào file
Ví dụ:
	public function _id( $suffix = '', $append_repeatable_iterator = true ) {
		$id = $this->field->id() . $suffix . ( $this->field->args( 'repeatable' ) ? '_' . $this->iterator : '' );
		error_log("aaaaaaaa1");
		error_log(print_r($this->field->id(), true));
		error_log(print_r($suffix));
		error_log(print_r($this->field->args( 'repeatable' )));
		error_log($this->iterator);
		error_log("aaaaaaaa2");
		if ( $append_repeatable_iterator && $this->field->args( 'repeatable' ) ) {
			$id .= '" data-iterator="' . $this->iterator;
		}
		return $id;
	}wp-content\debug.log
[02-Apr-2025 09:47:07 UTC] aaaaaaaa1wp-config.php
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);PreviousMột mẫu sử dụng tailwind kết hợp child theme (ok)NextChỉnh sửa woocommerce countries, states, continents (ok)
Last updated
Was this helpful?
